Write a program to calculate the fahrenheit of the given celsisus through the keyboard.
#include
#include
void main(void)
{
clrscr();
float c,f;
printf("Enter the tepmrature in fahrenheit");
scanf("%f",&f);
c=(f-32)*5/9;
printf("The temprature in Celsius is %f",c);
getch();
}
#include
#include
void main(void)
{
clrscr();
float c,f;
printf("Enter the tepmrature in fahrenheit");
scanf("%f",&f);
c=(f-32)*5/9;
printf("The temprature in Celsius is %f",c);
getch();
}
Comments
Post a Comment