> 其他 >
用C++编写函数把华氏温度转换成摄氏温度
编写函数把华氏温度转换成摄氏温度,公式为C=(F-32)*5/9.输入输出在主函数中完成.
人气:474 ℃ 时间:2020-04-27 11:42:15
解答
#include
using namespace std;
double change(double F)
{
return (F-32)*5/9;
}
int main()
{
double F;
coutF;
cout
推荐
猜你喜欢
© 2025 79432.Com All Rights Reserved.
电脑版|手机版