返回列表 發帖
  1. #include <cstdlib>
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6.     int X=1234;
  7.     int Y=567;
  8.      cout<<"請輸入X的值"<<endl;
  9.      cout<<"請輸入Y的值"<<endl;
  10.      cin>>X;
  11.      cin>>Y;
  12.       
  13.      cout<<"X+Y="<<X+Y<<endl;
  14.   cout<<"X-Y="<<X-Y<<endl;
  15.       cout<<"X*Y="<<X*Y<<endl;
  16.      cout<<"X/Y="<<X/Y<<endl;
  17.     cout<<"X%Y="<<X%Y<<endl;
  18.    system("pause");
  19.    return 0;  
  20. }
複製代碼

TOP

返回列表