Temperature of a city in Fahrenheit degrees is input through the keyboard. Write a program to convert this temperature into Centigrade degrees.
#include<stdio.h>
#include<conio.h>
void main(void)
{
float fahr, centi;
printf("Please enter temperature in Fahrenheit : ");
scanf("%f", &fahr);
centi=5.0*(fahr-32.0)/9.0;
printf("The temperature in Centigrade would be %f", centi);
getch();
}
#include<stdio.h>
#include<conio.h>
void main(void)
{
float fahr, centi;
printf("Please enter temperature in Fahrenheit : ");
scanf("%f", &fahr);
centi=5.0*(fahr-32.0)/9.0;
printf("The temperature in Centigrade would be %f", centi);
getch();
}