#include<stdio.h>
#include<conio.h>
void main()
{
float c,f; /* c for celsius and f for Fahrenheit */
clrscr();
print("enter Fahrenheit\n");
scanf("%f",&f);
c=f*(f/9-32);
(f-32)*5/9;
printf("\n temperature in celsius of Fahrenheit %.2f is %f", f,c);
getch();
}
output:
enter Fahrenheit
100.34
temperature in celsius of Fahrenheit 100.34 is 23.744444