This Program converts the Temperature from Fahrenheit to Celcius and vice versa.
Mind you, the formula for the conversion is just a multiplication by a factor one.
The conversion if non-linear and the logic is included in the program itself.
Temperature of a city in Fahreinheit degrees is input through the keyboard.
Write a program to convert this temerature into Centigrade degrees.
/*To convert Fahrenheit to Celsius, subtract 32 degrees and divide by 1.8.
To convert Celsius to Fahrenheit, multiply by 1.8 and add 32 degrees.*/
float temp_c, temp_f;
printf ("Enter the value of Temperature in Celcius: ");
scanf ("%f", &temp_c);
temp_f = (1.8 * temp_c) + 32;
printf ("The value of Temperature in Fahreinheit is: %f", temp_f);