Saturday, 10 December 2011

the temperature in Fahrenheit and convert into centigrade in c

#include
#include
main()
{
float f,a;
clrscr();
printf("\n ENTER VALUE F:-");
scanf("%f",&f);
a=f-32/1.8;
printf("\n centigrade=%f",a);
getch();
}



OUTPUT
ENTER VALUE F :98.4
Centigrade=80.622223

No comments:

Post a Comment