Number Comparison-2


Submit solution

Points: 50 (partial)
Time limit: 1.0s
Memory limit: 64M

Authors:
Problem type

題目說明

請撰寫一程式,讓使用者輸入三個整數,並依據條件輸出對應結果。

  • 如果三個數相等,輸出 "All numbers are equal."。
  • 如果三個數中至少有兩個數相等,輸出 "Two numbers are equal."。
  • 如果三個數都不相等,輸出 "All numbers are different."。

輸入

使用者將依次輸入三個整數。

輸出

根據三個數字之間的關係輸出一行文字。

範例輸入 #1

5 5 5

範例輸出 #1

All numbers are equal.

範例輸入 #2

10 5 10

範例輸出 #2

Two numbers are equal.

範例輸入 #3

3 7 9

範例輸出 #3

All numbers are different.

Comments

There are no comments at the moment.