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

TOP

返回列表