返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.      int h=9 ,f=5;
  7.      cout<<"當h的職位"<<h<<",f的職位"<<f<<"時..."<<endl;
  8.      cout<<"h+f="<<h+f<<endl;
  9.      cout<<"h-f="<<h-f<<endl;
  10.      cout<<"h*f="<<h*f<<endl;
  11.      cout<<"h/f="<<h/f<<endl;
  12.      cout<<"h%f="<<h%f<<endl;
  13.      
  14.      system("pause");
  15.      return 0;


  16. }
複製代碼

TOP

返回列表