A program Convert Temperature Fahrenheit to centigrade
1 2 3 4 5 6 7 8 9 | #include<stdio.h> int main() { float ftemp,ctemp; printf("Enter temperature of city in fahrenheit"); scanf("%f",&ftemp); ctemp=(5.0/9.0)*(ftemp-32); printf("\nThe given temperature in centigrade is %f",ctemp); } |
Post a Comment