main()
{
float ftemp,ctemp;
clrscr();
printf("Enter The Temp. in Faherenheit..");
scanf("%f",&ftemp);
ctemp=convc(ftemp);
printf("\n The Celsius is %f",ctemp);
getch();
}
convc(float x)
{
float y;
y=(x-32)/1.8;
return(y);
}
{
float ftemp,ctemp;
clrscr();
printf("Enter The Temp. in Faherenheit..");
scanf("%f",&ftemp);
ctemp=convc(ftemp);
printf("\n The Celsius is %f",ctemp);
getch();
}
convc(float x)
{
float y;
y=(x-32)/1.8;
return(y);
}
Here is just a simple article that explains how to convert between the Fahrenheit and Celsius temperature scales:
ReplyDeletehttp://www.ehow.com/how_5504000_convert-fahrenheit-celsius-temperature-scales.html