返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int X=10,Y=3;
  7.     cout<<"當X的質為"<<X<<",Y的質為"<<Y<<"時....."<<endl;
  8.     cout<<"X+Y="<<X+Y<<endl;
  9.     cout<<"X-Y="<<X-Y<<endl;
  10.     cout<<"X*Y="<<X*Y<<endl;
  11.     cout<<"X/Y="<<X/Y<<endl;
  12.     cout<<"X%Y="<<X%Y<<endl;
  13.     system("pause");
  14.     return 0;   
  15.    
  16. }
複製代碼

TOP

返回列表