编写程序蒋摄氏温度转换成华氏度。温度转换公式:F=9/5 C+32
#include <iostream> using namespace std; float f; float c; int main(){ cout<<"请输入摄氏度:\n"; cin>>c; f=(c*1.8)+32; cout<<c<<"℃转换为华氏度为"<<f<<"℉"; return 0; }
很简单,有帮助的话采纳一下哦!