1.阅读下面的程序,在电脑中录入、运行,说明程序的功能(要有运行截图)
1.Read the following program, input it into computer, run it and interpret its functions
#include<iostream>
using namespace std;
int main()
{
cout<<"Enter a degree in Celsius: ";
double celsius;
cin>>celsius;
double fahrenheit=(9.0/5)*celsius+32;
cout<<"Fahrenheit degree is "<<fahrenheit;
return 0;
}
2.阅读下面的程序,在电脑中录入,说明程序的功能(要有运行截图)
2.Read the following program, input it into computer, run it and interpret its functions
#include<iostream>
using namespace std;
int main()
{
cout<<"Enter the radius and length of a cylinder: ";
double radius,length;
cin>>radius>>length;
double area=radius*radius*3.14159;