Conversione °F in °C in linguaggio C

#include

int main ()
{
int fahrenheit, celsius;
printf ("Temperatura in Fahrenheit n");
scanf("%d",&fahrenheit);
celsius = 5 * (fahrenheit-32) / 9;

printf(" %d gradi fahrenheit = %d gradi Celsius n", fahrenheit, celsius);
return 0;
}

Posta un commento

Nuova Vecchia