> 其他 >
已知华氏温度F与摄氏温度C的数学换算公式为:C=(F-32)*5/9 ,
编写一个C++程序,用于计算与华氏温度0,10,20,30,40,…,200依次对应的摄氏温度值(要求精确到小数点后2位).要求输出华氏温度和对应的摄氏温度.
请帮忙!
人气:154 ℃ 时间:2020-02-20 15:32:56
解答
#include
#include
using namespace std;
int main()
{
int i;
float C,F;

cout
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版