返回列表 發帖
  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4. int main ()
  5. {
  6.    int a,b,c,d,e,f,g,h,i;
  7.    cout<<"please enter five numbers:";
  8.    cin>>a>>b>>c>>d>>e;
  9.    f=(a>b)?a:b;   
  10.    g=(c>d)?c:d;
  11.    h=(e>f)?e:f;
  12.    i=(g>h)?g:h;
  13.    cout<<"the biggest of five;"<<i<<endl;  
  14.     system ("pause");
  15.     return 0;   
  16. }
複製代碼

TOP

返回列表