C++程序设计:2.01
#include<iostream>
using namespace std;
int main()
{
double a,b;
cout<<"Enter a degree in Celsius:";
cin>>a;
b=(9.0/5)*a+32;
cout<<a<<" "<<"Celsius is"<<" "<<b<<" "<<"Fahrenheit"<<endl;
return 0;
}
#include<iostream>
using namespace std;
int main()
{
double a,b;
cout<<"Enter a degree in Celsius:";
cin>>a;
b=(9.0/5)*a+32;
cout<<a<<" "<<"Celsius is"<<" "<<b<<" "<<"Fahrenheit"<<endl;
return 0;
}
相关推荐