move to repo.or.cz
[letusc.git] / ch1 / exercises / ex4.c
blob1da5e60af7226df11e78c6581c1acf945c2f3166
1 /*fahrenheit to celcius*/
3 #include<stdio.h>
5 int main()
7 float fh,cs;
8 printf("Enter the temp in fahrenheit: ");
9 scanf("%f",&fh);
11 cs = (fh-32)*(5.0/9.0);
13 printf("The Temp in celcius is %.2f C",cs);
14 return 0;