Friday, 18 May 2012

temperature in Fahrenheit and convert into centigrade


13./*Enter the temperature in Fahrenheit and convert into centigrade*/

#include<stdio.h>
#include<conio.h>
main()
{
float f,a;
clrscr();
printf("\n ENTER VALUE F:-");
scanf("%f",&f);
a=f-32/1.8;
printf("\n centigrade=%f",a);
getch();
}



OUTPUT
            ENTER VALUE F :98.4
            Centigrade=80.622223

No comments:

Post a Comment