Posts

Showing posts with the label PROGRAM TO CONVERT FAHRENHEIT TEMPRATURE INTO CELCIUS TEMPRATURE

Temperature of a city in Fahrenheit degrees is input through the keyboard . write a program to convert this temperature into Centigrade degrees.

  // program for calculate to convert the temprature. # include <stdio.h> int main (){     float fahrenheit,celsius;     printf ( "Enter the value of fahrenheit :\n" );     scanf ( "%f" , & fahrenheit);     celsius = (fahrenheit - 32 ) * 5 / 9 ;     printf ( "The value of %f degree F is %f  degree C " ,fahrenheit,celsius);     return 0 ; } /*OUTPUT*/ Enter the value of fahrenheit : 65 The value of 65.000000 degree F is 18.333334 degree C