Question #104888

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]

Expert's answer

#include <iostream>

using namespace std;

int main(void){

int cels;

double fah;

cin >> cels;

fah = 1.8 * cels + 32.0;

cout << fah;

return 0;

}
LATEST TUTORIALS
APPROVED BY CLIENTS