The program to convert temperature from Fahrenheit to Celsius(Centigrade)
#include<stdio.h>
#include<conio.h>
void main (main)
{
float ftemp,ctemp;
clrscr();
printf("Enter the temperature in Fahrenheit : ");
scanf("%f",&ftemp);
ctemp = (ftemp-32)*5/9;
printf("\nTemperature in Centigrade : %.2f",ctemp);
getch();
}
What is this?
#include<stdio.h>
#include<conio.h>
void main (main)
{
float ftemp,ctemp;
clrscr();
printf("Enter the temperature in Fahrenheit : ");
scanf("%f",&ftemp);
ctemp = (ftemp-32)*5/9;
printf("\nTemperature in Centigrade : %.2f",ctemp);
getch();
}
What is this?
0 comments:
Post a Comment