摄氏温度到华氏温度转换程序 ①抬头输出Title②摄氏温度从0到50转换为华氏温度每隔5度进行输出

2025-04-13 22:53:37
推荐回答(1个)
回答1:

#include  
using namespace std; 
int main()  
{  
double sheshi=0.0;  
double huashi=0.0; 
cout<<"摄氏温度到华氏温度转换程序1-50度转换"<for (sheshi==0.0;sheshi<=50.0;sheshi++)
{  
cout<<"摄氏温度:"<";
huashi=sheshi*9.0/5+32.0;
cout<<"华氏温度是:"<}  
system("pause");
return 0; 
}

//运行结果如下图: