Wednesday, 26 October 2016

WAP to convert temperature Fahrenheit into centigrade.


WAP to convert temperature Fahrenheit into centigrade.


//temperature in Fahrenheit into centigrade degree.

#include<stdio.h>
#include<conio.h>
Void main ( )
{
Float f,c;
Clrscr( );
Printf(“\n Enter the temperature in fahrenheit “);
Scanf(“%f”,&f);
C=5.0/9*(f-32);
Printf(“\n %f degree fahrenheit =%f degree centigrade”,f,c);
Getch( );
}

Output.
Enter temperature in Fahrenheit e.g 68.5
68.500000 degree Fahrenheit =20.277779 degree centigrade.





0 comments: