#12 Celsius to Fahrenheit using C++. 144 Chapter 3 Expressions and Interactivity
ID: 3849680 • Letter: #
Question
#12 Celsius to Fahrenheit using C++.
Explanation / Answer
12.
/CPP program for temperature conversion from Celsius to Fahrenheit
#include <iostream>
using namespace std;
int main()
{
float centi,Fahren; //decalare variables
cout<<"Enter temperature in Celsius : ";
cin>>centi; //input centigrade
Fahren=9/5*celsi+32; //converting expression
cout<<" Converted : Fahrenheit temperature "<<Fahren<<" from Celsius "<<celsi; //printing output
return 0;
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.