返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6. int apple=7,b=6;
  7. cout<<"a=7,b=6"<<endl;
  8. cout<<"結果如下:"<<endl;
  9. cout<<"a+b="<<apple+b<<endl;
  10. cout<<"a-b="<<apple-b<<endl;
  11. cout<<"a*b="<<apple*b<<endl;
  12. cout<<"a/b="<<apple/b<<"餘數"<<apple%b<<endl;
  13. cout<<""<<endl;
  14. system("pause");
  15. return 0;   
  16.    
  17.    
  18. }
複製代碼

TOP

返回列表