返回列表 發帖
  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int x;
  7.     int y;
  8.     cout<< "請輸入x:";
  9.     cin>>x;
  10.     cout<< "請輸入y:";
  11.     cin>>y;
  12.    
  13.     cout<< "x=" << x <<endl;
  14.     cout<< "y=" << y <<endl;
  15.     if(x > y)
  16.     {
  17.       cout<<"你是笨蛋"<<endl;   
  18.     }
  19.      if(x < y)
  20.     {
  21.       cout<<"你是笨蛋"<<endl;   
  22.     }
  23.      if(x == y)
  24.     {
  25.       cout<<"你是笨蛋"<<endl;   
  26.     }
  27.    
  28.    
  29.     system("pause");
  30.     return 0;
  31. }
複製代碼

TOP

返回列表