CProgram

Convert Temperature from Degree Centigrade to Fahrenheit

Write a Program to Convert Temperature from Degree Centigrade to Fahrenheit.

/*Program to Convert Temperature from Degree Centigrade to Fahrenheit
f = (1.8*c) + 32*/
#include <stdio.h>
main()
{
float c, f;
printf(“\nEnter temperature in degree Centigrade: “);
scanf(“%f”, &c);
f = (1.8*c) + 32;
printf(“\n\nTemperature in degree Fahrenheit: %.2f”, f);
getch();
}

What's your reaction?

Excited
0
Happy
0
In Love
0
Not Sure
0
Silly
0

You may also like

Leave a reply

Your email address will not be published.

More in:C