- #include<iostream> // <-基本輸出輸入的函式庫 Input Output cin 輸入 cout 輸出
- #include<cstdlib> //主要的函式庫 Library
- using namespace std;
- int main()
- {
- int x =10; int y = 20;
- 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;
- }
複製代碼 |