返回列表 發帖
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.   cout<<"圓型面積計算機"<<endl;  
  6.   int r;
  7.   cout<<"請輸入圓半徑:"<<endl;
  8.   cin>>r ;
  9.   cout<<"當圓型半徑為:"<<r<<"圓面積為::"<<r*r*3.14
  10.   <<"圓周長為"<<2*r*3.14<<endl;
  11.   system("pause");
  12.   return 0;      
  13. }
複製代碼

TOP

返回列表