C Programs
Friday, October 4, 2013
Program to convert temperature from celsius to fahrenheit
#include<conio.h>
#include<stdio.h>
int main()
{
float f,c;
printf("\n enter the temp. in celcius:");
scanf("%f",&c);
f=(c*9)/5+32;
printf("\n the temperature in fahrenheit is:%.2f",f);
getch();
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment