Write a program to convert temperature Fahrenheit to Centigrade

Write a program to convert temperature Fahrenheit to Centigrade

  1. Input temperature in fahrenheit from user. Store it in some variable say fahrenheit.
  2. Apply the temperature conversion formula celsius = (fahrenheit - 32) * 5 / 9.
  3. Print the value of celsius.

Example
Input

Temperature in fahrenheit = 205

Output

Temperature in celsius = 96.11 C


Temperature conversion formula

Formula to convert temperature from degree Fahrenheit to degree Celsius is given by –
Fahrenheit to Celsius conversion formula

 #include
 #include
 Void main()
 {
 Float fr,cent;
 Clrscr();
 Printf(“\Enter the temperature(F):”);
 Scanf(“%f”,&fr);
 Cent=5.0/9.0*(fr-32);
 Printf(“\nTemperature in centigrade=%f”,cent);
 Printf(“\n\n\n\n\nPress any key to exit”);
 Getch();
 }