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

TOP

返回列表