- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int x = 10;
- int y = 3;
- 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;
- }
複製代碼 |