cpp_primer_plus/ch02/05.cpp
2022-08-23 23:01:08 +01:00

11 lines
272 B
C++

# include <iostream>
using namespace std;
int main(){
double ce_value, fa_value;
cout << "Enter Celsisus value: ";
cin >> ce_value;
fa_value = 1.8 * ce_value + 32;
cout << ce_value << "degree Celsisus is " << fa_value << " degrees Fahrenheit" << endl;
return 0;
}