String Comparison
題目說明
請撰寫一程式,讓使用者輸入兩個字串,判斷這兩個字串是否相等。
- 如果相等,輸出 "The strings are equal."。
- 如果不相等,輸出 "The strings are not equal."。
輸入
使用者將依次輸入兩個字串。
輸出
根據兩個字串是否相等輸出結果。
範例輸入 #1
Hello
Hello
範例輸出 #1
The strings are equal.
範例輸入 #2
Hello
World
範例輸出 #2
The strings are not equal.
Comments