求代码:输入一个摄氏温度,输出华氏温度,用C++语言解决。

很着急!!!
2025-03-18 00:52:27
推荐回答(3个)
回答1:

#include 
#include 
using namespace std;
int main()
{
float c,F;
cout<<"请输入摄氏温度:"<cin>>c;
F=9.0/5*c+32;
cout<cout<<"对应的华氏温度是:"<return 0;
}

回答2:

#include
using namespace std;
int main() 

    float c, f; 
    cin>>c;
    f = 9.0 / 5.0 * c + 32; 
    cout<    return 0;
}

回答3:

在知道上面,搜索,很快就能找到

~~~~~~~~