返回列表 發帖
  1. int main()
  2. {
  3.     int a,b;
  4.     cout<<"請輸入a: ";
  5.     cin>>a;
  6.     cout<<"請輸入b: ";
  7.     cin>>b;
  8.     if(a>b)
  9.     {
  10.           cout<<"a>b"<<endl;
  11.     }
  12.     else if(a<b)
  13.     {
  14.           cout<<"a<b"<<endl;
  15.     }
  16.     else if(a=b)
  17.     {
  18.           cout<<"a=b"<<endl;
  19.     }
  20.     system("pause");
  21.     return 0;
  22. }
複製代碼

TOP

返回列表