Wednesday, February 13, 2013

C Program To Convert Fahrenheit Temperature to Celsius Temperature

#include<stdio.h>
#include<conio.h>
void main()
{
int ftemp;
float ctemp;
clrscr();
printf("\n Enter Temp in Fahrenheit");
scanf("%d",&ftemp);
ctemp=(ftemp-32)/1.8;
printf("\n The Temp is in ctemp %f",ctemp);
getch();
}


Follow us on Facebook

1 comment: