返回列表 發帖
本帖最後由 曲書辰 於 2018-10-13 14:01 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int X,Y;
  7.     cout<<"請輸入X的值:";
  8.     cin>>X;
  9.     cout<<"請輸入Y的值:";
  10.     cin>>Y ;
  11.     cout<<X<<" + "<<Y<<" = "<<X+Y<<endl;
  12.     cout<<X<<" - "<<Y<<" = "<<X+Y<<endl;
  13.     cout<<X<<" * "<<Y<<" = "<<X+Y<<endl;
  14.     cout<<X<<" / "<<Y<<" = "<<X+Y<<endl;
  15.     cout<<X<<" % "<<Y<<" = "<<X+Y<<endl;
  16.     system("pause");
  17.     return 0;   
  18.    
  19. }
複製代碼

TOP

返回列表