返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int a,b;
  7.     cout<<"請輸入一整數a: " ;
  8.    cin>>a;
  9.    cout<<"請輸入一整數b";
  10.   cin>>b;
  11.   if (a>b)
  12.   {cout<<"a較高";}
  13.   else if(b>a)
  14.   {cout<<"b較高" ;}
  15.   else
  16.   {cout<<"ab一樣";}
  17.    
  18. system("pause");
  19.   return 0;
  20. }
  21. int   x, y;
  22.   
複製代碼

TOP

返回列表