#include<iostream>
using namespace std;
float exchange(float t)
{
return 1.8 * t + 32.0;
}
int main()
{
cout << "Please enter a Celsius value:";
float c,f;
cin >> c;
f = exchange(c);
cout << c << "degrees Celsius is " << f << " degrees Fahrenheit." << endl;
return 0;
}
Exercise 2.4
最新推荐文章于 2018-03-05 09:20:00 发布