返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. const double PI=3.1415926535897932384626433832795028841971693993751058209749445648566923460348610454326648213393607260249141273;
  5. int main()
  6. {
  7.     double r;
  8.     cout<<"r=";
  9.     cin>>r;
  10.     cout<<"r"<<r<<"cm's circle,面積="<<r*r*PI<<"cm2"<<endl;   
  11.     system ("pause");
  12.     return 0;
  13. }
複製代碼

TOP

返回列表