Monday, November 1, 2010

Fahrenheit to centigrade-C

#include
#include
void main()
{
float f,c1;
clrscr();
printf("\n Enter the fahrenheit value");
scanf("%f",&f);
c1=(5.0/9.0)*(f-32);

printf("\n The Fahrenheit %f to centigrade is:%6.2f",f,c1);

getch();
}

No comments:

Post a Comment