返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.   int num1=0;
  7.   int num2=0;

  8. cont<<"請輸錄數字"<<endl;
  9. cin>>num1;
  10. cont<<"請輸錄數字"<<endl;
  11. cin>>num2;

  12. cout<<num1<<"+"<<num2<<"="<<num1+num2<<endl;
  13. cout<<num1<<"-"<<num2<<"="<<num1-num2<<endl;
  14. cout<<num1<<"*"<<num2<<"="<<num1*num2<<endl;
  15. cout<<num1<<"/"<<num2<<"="<<num1/num2<<endl;
  16. cout<<num1<<"%"<<num2<<"="<<num1%num2<<endl;
  17.         
  18.   system("pause");
  19.   return 0;      
  20. }
複製代碼

TOP

返回列表