Solve problem in Alice 243 Fahrenheit to Celsius The followi

Solve problem in Alice 2.4.3 Fahrenheit to Celsius The following formula is used to convert a Fahrenheit temperature to a Celsius temperature: C = (5 / 9) * (F - 32) In the formula, C is the Celsius temperature and F is the Fahrenheit temperature. Create a world in which the user is asked to enter a Fahrenheit temperature. Use a math expression to convert the temperature to Celsius, and store the converted temperature in a variable. Use a character from the People collection to say the Celsius temperature.

Solution

#include <stdio.h>

int main()
{
float C,F;
printf(\"enter a Fahrenheit temperature: \");
scanf(\"%f\",&F);
  
C=(float)((5.0/9.0)*(F-32));
printf(\"Celsius temperature for given Fahrenheit temperature is %f \ \",C);
return 0;
}

example:

enter a Fahrenheit temperature: 102   

Celsius temperature for given Fahrenheit temperature is 38.888889.

Solve problem in Alice 2.4.3 Fahrenheit to Celsius The following formula is used to convert a Fahrenheit temperature to a Celsius temperature: C = (5 / 9) * (F

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site