#include <stdio.h>
float FahrenheitToCelsius (float fahrenheit)
{
float conversion=((fahrenheit-32)*5)/9;
return conversion;
}
int main()
{
float fahrenheit;
float celsius;
printf("Introduce la Tª en ºF: ");
scanf("%f", &fahrenheit);
printf("%.1f\n", fahrenheit);
celsius=FahrenheitToCelsius(fahrenheit);
printf("La Tª en ºC es: %.1f\n", celsius);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: