Monday, January 4, 2010

Program to convert temperature from degree centigrade to Fahrenheit:

#include
#include

void main()
{
float c,f;
clrscr();
printf("enter temp in centigrade: ");
scanf("%f",&c);
f=(1.8*c)+32;
printf("temp in Fahrenheit=%f",f);
getch();
}

 

No comments:

Post a Comment