返回列表 發帖
#include <cstdlib>
#include <iostream>
using namespace std;
int main()
{
    int X=1234;
    int Y=567;
     cout<<"請輸入X的值"<<endl;
     cout<<"請輸入Y的值"<<endl;
     cin>>X;
     cin>>Y;
      
     cout<<"X+Y="<<X+Y<<endl;
  cout<<"X-Y="<<X-Y<<endl;
      cout<<"X*Y="<<X*Y<<endl;
     cout<<"X/Y="<<X/Y<<endl;
    cout<<"X%Y="<<X%Y<<endl;
   system("pause");
   return 0;  
}

TOP

返回列表