source file name: FarToCel.C
#include<stdio.h>
int main()
{
float F,C;
//clrscr();
printf("\n Enter Farhenheit temp.: ");
scanf("%f",&F);
C=(5*(F-32))/9;
printf("\n Centigrade temp.=%f",C);
//getch();
return 0;
}
output:
source file name: FarToCel.C
#include<stdio.h>
int main()
{
float F,C;
//clrscr();
printf("\n Enter Farhenheit temp.: ");
scanf("%f",&F);
C=(5*(F-32))/9;
printf("\n Centigrade temp.=%f",C);
//getch();
return 0;
}
output:
0 Comments
Post a Comment