标签:namespace ima sys mic image const pause 程序 name
源程序:
#include <iostream>
using namespace std;
const double pi = 3.14159;
int main()
{
double r;
cout << "输入r:";
cin >> r;
double l = 2.0*pi*r;
double s = pi*r*r;
cout << "\n周长是:" << l << endl;
cout << "面积是:" << s << endl;
system("pause");
return 1;
}
运行结果:
标签:namespace ima sys mic image const pause 程序 name
原文地址:https://www.cnblogs.com/duanqibo/p/12268522.html