4. Write an application that inputs temperature in degrees Celsius and prints out the temperature in degrees Fahrenheit. [NB: Fahrenheit=1.8 x Celsius + 32]
1
Expert's answer
2020-03-09T11:22:05-0400
#include <iostream>
using namespace std;
int main(void){
int cels;
double fah;
cin >> cels;
fah = 1.8 * cels + 32.0;
cout << fah;
return 0;
}
Comments
Leave a comment