Simple Number Comparison
題目說明
請撰寫一個程式,允許使用者輸入兩個整數,並根據以下條件來輸出對應結果。
- 如果兩個數相等,輸出 "Both numbers are equal."。
- 如果第一個數大於第二個數,輸出 "The first number is larger."。
- 如果第一個數小於第二個數,輸出 "The second number is larger."。
輸入
使用者將依次輸入兩個整數。
輸出
根據數字的比較結果輸出一行文字。
範例輸入 #1
10
10
範例輸出 #1
Both numbers are equal.
範例輸入 #2
20
15
範例輸出 #2
The first number is larger.
範例輸入 #3
5
10
範例輸出 #3
The second number is larger.
Comments