computing-fundamentals
C programs and question bank.
Monday, November 1, 2010
centigrade to Fahrenheit-C
#include
void main ()
{
float tempc, tempf;
printf ("Enter the value of Temperature in Celcius: ");
scanf ("%f", &tempc);
tempf = (1.8 * tempc) + 32;
printf ("The value of Temperature in Fahreinheit is: %f", tempf);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment