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

TOP

返回列表