Saturday, 14 January 2012

Conversion of Centigrade temperature to fahrenheit


 #include
#include
void main()
{
float fahr,cent;
clrscr();
printf("Enter the temperature in centigrade=");
scanf("%f",¢);
fahr=1.8*cent+32.0;
printf("%f centigrade is equals to the %f fahrenheit",cent,fahr);
getch();
}
 

No comments:

Post a Comment