1.

Write a program to input the temperature in Fahrenheit and convert it to celcius (c=5/9*(f-32)​

Answer»

Answer:

to convert temperature in degrees Fahrenheit to Celsius, we use the FOLLOWING formula:

 

The following is a C program to convert temperature in Fahrenheit to Celsius:

 

#INCLUDE // include stdio.h

int main()  

{

   FLOAT fah, cel;

   PRINTF("Enter a temp in fah: ");

   scanf("%f", &fah);

   cel = (5.0/9) * (fah - 32);

   printf ("%.2f°F is same as %.2f°C", fah, cel);

   return 0;

}



Discussion

No Comment Found