Sunday, August 7, 2011

Convert temperature in degree celcius to farenheit

#include<stdio.h>

void main()
{
float temp,faren;
clrscr();
printf("Enter temperature in degree :");
scanf("%f",&temp);
faren=(9.0/5.0)*temp+32;
printf("%g degree is %g farenheit", temp, faren);
getch();
}

0 comments:

Post a Comment