Question: #include using namespace std; float c _ f ( float ) ; float f _ c ( float ) ; main ( ) { while
#include
using namespace std;
float cffloat;
float fcfloat;
main
while
int ch;
float temp;
cout Temparature Conversion Program endl;
cout
Celsius to Fahrenheit
Fahrenheit to Celsius
Exit" endl;
cout
Enter you choice: ;
cin ch;
ifch
cout
Celsius to Fahrenheit endl;
cout "Enter temparature in Celsius: ;
cin temp;
iftemp
cout "Temparature in Fahrenheit: cftemp endl endl;
else
cout "Try with a positive number.";
else ifch
cout
Fahrenheit to Celsius endl;
cout "Enter temprature in Fahrenheit: ;
cin temp;
iftemp
cout "Temprature in Celsius: fctemp endl endl;
else
cout "Try with a positive number.";
else ifch
cout
Thank you for using this program" endl;
exit;
else
cout"Invalid Choice";
float cffloat celsius
float fahrenheit celsius;
return fahrenheit;
float fcfloat fahrenheit
float celsius fahrenheit;
return celsius;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
