cpp_primer_plus/ch02/05.cpp

12 lines
272 B
C++
Raw Normal View History

2022-08-24 01:47:13 +08:00
# 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;
}