返回列表 發帖
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.       float x;
  6.       cout<<"★★★★★★★★★★★" <<endl;
  7.       cout<<"★請輸入圓半徑(cm):";
  8.       cin>>x;
  9.       cout<<"★圓直徑為:"<<2*x<<endl;
  10.       cout<<"★圓周長為:"<<(2*x)*3.14<<endl;
  11.       cout<<"★圓面積為:"<<x*x*3.14<<endl;
  12.       cout<<"★★★★★★★★★★★" <<endl;
  13.       
  14.       
  15.       system("pause");
  16.       return 0;
  17.       
  18. }
複製代碼

TOP

返回列表