#include<iostream>
using namespace std;
float exchange(float l)
{
return l * 63240;;
}
int main()
{
cout << "Enter the number of light years:";
float light,unit;
cin >> light;
unit = exchange(light);
cout << light << " light years = " << unit << " astronomical units." << endl;
return 0;
}
Exercise 2.5
最新推荐文章于 2021-07-08 10:52:11 发布