# Compute Fahrenhit from Centigrate: C Program

0
841

We have created a listing of the formulas needed to convert temperature to and from both Celsius ( commonly misspelled celcius ) and Fahrenheit ( commonly misspelled Farenheit ). We have also created a converter for your use. The formulas can teach the process and the converter will make your life easier. Enjoy!

Below is the formula to convert a Celsius scale temperature into degrees on the Fahrenheit scale.

f = (9/5)*c+32;   c = temperature in degrees Celsius,  f = temperature in degrees Fahrenheit

Assume that you have a Celsius scale temperature of 100 degrees and you wish to convert it into degrees on the Fahrenheit scale. Using the stated formula, you first multiply the Celsius scale temperature reading by nine-fifths and get a result of 180. Then add 32 to 180 and get the final converted result of 212 degrees on the Fahrenheit scale.

[message_box title=”Program ” color=”red”]

/* Write a program to compute fahrenhit from centigrate */

/* Written by Utpal Chaudhary */

/*Studen of L.D COLEGE OF ENGINEERING,Ahmedabad-15,Gujarat */

#include <stdio.h>
#include <conio.h>

void main()
{
float f,c;

clrscr();

printf (“Enter Temperature in Centigrate = “);

scanf (“%f”,&c);

f=(9/5)*c+32;

printf (“Temperature in Fahrenhit = %f “,f);

}

[/message_box]

[message_box title=”Output” color=”red”]
Enter Temperature in Centigrate = 12

Temperature in Fahrenhit = 53.6
[/message_box]

SHARE
Previous articleIC 7490
Next articleTSOP 1738 : Component