- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int a,b;
- cout<<"this program cauculates many weird stuff.\npls input the value of a:";
- cin>>a;
- cout<<"pls input the value of b:";
- cin>>b;
- 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";
- system("pause");
- return 0;
- }
複製代碼 |