- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int x;
- int y;
- x=7;
- y=9;
- cout << "x 現在是" << x << "y 現在是" << y<< endl;
- cout << "x + y =" << x + y << endl;
- cout << "x - y =" << x - y << endl;
- cout << "x * y =" << x * y << endl;
- cout << "x / y =" << x / y << endl;
- cout << "x % y =" << x % y << endl;
- system("pause");
- return 0;
- }
複製代碼 |