write a C program for Conversion of Temperature from Fahrenheit to Centigrade
Problem Statement:
Temperature of a city in Fahrenheit degrees is input through the keyboard. Write a c program to convert this temperature into Centigrade degrees.
Answer:
/* Conversion of Temperature from Fahrenheit to Centigrade */
#include <stdio.h>
#include <conio.h>
main()
{
float fr, cent;
clrscr();
print(“\n Enter the temperature in Fahrenheit:”);
scanf(“%f”, &fr);
cent=5.0/9.0*(fr-32);
printf(“\n Temprature in Centigrade=%f”, cent);
printf(“\n\n\n\n\n Press any key to exit…..”);
getch();
}
Please run this program and share the output with us.