返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6. int x,y,z,tep=0;
  7.     cout<<"請任意輸入三個數:";
  8.     cin>>x>>y>>z;
  9.     tep=(x>y)?x:y;
  10.     tep=(tep>z)?tep:z;
  11.     cout<<tep<<endl;
  12. system("pause");
  13. return 0;
  14. }
複製代碼

TOP

返回列表