Code Box
-------------------------------------------
/* Program to convert temperature Fahrenheit to Celsius in C */
#include<conio.h>
#include<stdio.h>
void main()
{
float c,f;
clrscr();
printf("\n\tTEMPERATURE CONVERTER \n\t[Fahrenheit to Celsius]");
printf("\n\tEnter temperature in F:");
scanf("%f",&f);
c=((f-32)*5)/9;
printf("\n\tF= %f equals to C= %f",f,c);
getch();
}
No comments:
Post a Comment