【发布时间】:2019-02-15 21:53:37
【问题描述】:
有什么区别:
#define PI 3.14
using namespace std;
int main()
{
int r;
float area;
cout << "Enter the radius:";
cin>>r;
area=r*r*PI;
cout << area << endl;
}
和
#define PI 3.14
using namespace std;
int main()
{
int r;
cout << "Enter the radius:";
cin>>r;
cout << r*r*PI <<endl;
}
【问题讨论】:
-
请将任何代码作为问题中的文本而不是图像发布。
-
请每个问题回答一个问题。请发布一个实际问题,而不仅仅是一个链接
标签: c++ printing difference