Problem:- write a c program to convert Fahrenheit to Celsius and vice versa or c program for temperature conversion using a switch or c program to convert Celsius to Fahrenheit and Fahrenheit to Celsius or c program to convert temperature from Fahrenheit to Celsius and vice versa using switch case or c program for temperature conversion using functions or flowchart to convert Celsius to Fahrenheit and vice versa or c program to convert Fahrenheit to Celsius and vice versa or c program to convert Fahrenheit to Celsius using functions
Logic:- For Converting Temperature Celsius to Fahrenheit, we are using a given Formula. We have just take a value or temperature in Celsius or Fahrenheit by the user and put the values in given formula and print the outcome given by formula on screen. Here in this problem we are given three option to the user and user have to choose any one of the first choices is Celsius To Fahrenheit, the second choice is Fahrenheit To Celsius and the Last one is Exit without testing any one of the queries.
Formulas
Celsius To Fahrenheit:-
Fahrenheit = ( Celsius * 9 / 5 ) + 32;
Fahrenheit To Celsius:-
Celsius = ( Fahrenheit - 32 ) * 5 / 9;