To convert Fahrenheit into Celsius you need to apply simple formula
(F-32)/1.8.
C program to convert fahrenheit into celsius
#include<stdio.h>
void main()
{
float c,f;
clrscr();
printf("Enter the value of Fahrenheit::");
scanf("%f",&f);
c=(f-32)/1.8;
printf("Celsius is:: %f",c);
getch();
}
0 comments:
Post a Comment