read more...
post by sanjay Vishwakarma
Sunday, October 3, 2010
write a program to accept temperature in centigrade degree and convert it into Fahrenheit degrees..
#include
#include
void main()
{
int b,d,e;
float c,f;
clrscr();
printf("\n\t Enter the temperature\t:\t");
scanf("%f",&f);
b=5;
d=9;
e=32;
c=b*(f-e)/d;
printf("\n\t Fahrenheit degree\t:\t%0.2f C",c);
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment