返回列表 發帖
  1. int main()
  2. {   
  3.     re:
  4.     int  a,b,c,d,e;
  5.     cout<<"請輸入三個數: ";
  6.     cin>>a>>b>>c;
  7.     d=a>b?a:b;
  8.     e=d>c?d:c;
  9.     cout<<"三數中最大的為: "<<e<<endl<<endl;
  10.     goto re;
  11.     system("pause");
  12.     return 0;   
  13. }
複製代碼
hahahahahahahaha

TOP

返回列表