返回列表 發帖
  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.    cout<<"<歡迎使用自動比大小軟體>"<<endl;
  7.    cout<<"<製作者 : 影武  嚴禁複製>"<<endl;
  8.    int x,y,z;
  9.    cout<<"~請輸入第一個數:";
  10.    cin>>x;
  11.    cout<<"~請輸入第二個數:";
  12.    cin>>y;
  13.    z=(x>y)?x:y;
  14.    cout<<"~兩數中較大的數為"<<z<<endl;
  15.    cout<<"<製作者 : 影武  嚴禁複製>"<<endl;
  16.    cout<<"<*~@感謝您的使用@~*r>"<<endl;
  17.    system("pause");
  18.    return 0;
  19. }
複製代碼

TOP

返回列表