prev | Getting Input Values From Keyboard 12.Conversion from Fahrenheit to Centigrade (24.6.2009) /* Program# 12 date : 10-12-2008 Fahrenheit to centigrade */ #include <stdio.h> main(){ float c,f; printf("\nEnter Fahrenheit :"); scanf("%f",&f); c=(5.0/9.0)*(f-32); printf("%.1f Fahrenheit equals %.1f celsius\n",f,c); } output: Enter Fahrenheit : 215 215.0 Fahrenheit equals 101.7 celsius |
next |