Write a C program to convert a given temperature value from Fahrenheit to Centigrade and vice versa? In this example we will learn how to convert a given temperature in Fahrenheit to Centigrade and to convert given temperature value from Centigrade to Fahrenheit depending on the choice of the user. To solve this program we should have basic knowledge in c and most importantly a clear concept on : Switch Statement And we must know the formula of conversion from Fahrenheit to Centigrade(Celsius) and Centigrade(Celsius) to Fahrenheit. Fahrenheit To Centigrade Centigrade To Fahrenheit PROGRAM #include <stdio.h> #include <conio.h> void main () { float f , c ; int ch ; printf ( "CONVERT" ); printf ( " \n 1. Fahrenheit to Celsius." ); printf ( " \n 2. Celsius to Fahrenheit \n " ); printf ( " \n Enter your choice (1|2):" ); sca
Comments