返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>

  3. using namespace std;
  4. int main()
  5. {
  6.     int a,b;
  7.     cout<<"this program cauculates many weird stuff.\npls input the value of a:";
  8.     cin>>a;
  9.     cout<<"pls input the value of b:";
  10.     cin>>b;
  11.     cout<<"\nthe value of a+b is:\t"<<a+b<<"\nthe value of a-b is :\t"<<a-b<<"\nthe value of a*b is:\t"<<a*b<<"\nthe value of a/b is :\t"<<a/b<<"\nthe value of a%b is :\t"<<a%b<<"\n";
  12.     system("pause");
  13.     return 0;
  14. }
複製代碼

TOP

返回列表