Home / EG Comp Lab / C Language / Compute Fahrenhit from Centigrate: C Program

Compute Fahrenhit from Centigrate: C Program

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;


printf (“Enter Temperature in Centigrate = “);

scanf (“%f”,&c);


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


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

Temperature in Fahrenhit = 53.6

About EngineersGallery

Check Also

Game-Theoretic Pricing for Video Streaming in Mobile Networks

ABSTRACT Mobile phones are among the most popular consumer devices, and the recent developments of …

Leave a Reply

Be the First to Comment!

Notify of