返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.    
  7.     int a,s,t,z;
  8.     cout<<"請輸入三個數:"<<endl;
  9.     cin>>a>>s>>t;
  10.     z =(a>s)?a:s;
  11.     z =(z>t)?z:t;
  12.     cout<<z<<endl;

  13.     system("pause");
  14.     return 0;
  15. }
複製代碼

TOP

返回列表