返回列表 發帖
  1. #include <iostream>
  2. #include <cstdlib>

  3. using namespace std;

  4. int main ()
  5. {
  6. re:

  7. int r= 0;


  8. cout<<"請輸入正三角形單一邊長(公分):";
  9. cin>>r;        


  10. float l = r*3;




  11. cout<<"====================="<<endl;

  12. cout<<"這個正三角形的周長為"<<l<<"公分"<<endl;




  13.         
  14.         
  15.         
  16.         goto re;
  17.         
  18.         system ("pause");
  19.         return 0;

  20. }
複製代碼

TOP

返回列表