- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int x;
- int y;
- cout << "拜託 請快輸入X的值 呦!: ";
- cin >> x;
- cout << "請用你最快的速度輸入Y的值*_*: ";
- cin >> y;
- 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;
- }
複製代碼 |