Judging numbers


Submit solution

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

Authors:
Problem type

題目說明

請設計一個程式,讓使用者輸入一個整數,程式會判斷該整數的範圍並輸出對應的訊息:

如果整數小於 0,輸出 "negative number"
如果整數介於 0 到 10(包含 0 和 10),輸出 "between 0 and 10"
如果整數介於 11 到 100(包含 11 和 100),輸出 "between 11 and 100"
如果整數大於 100,輸出 "bigger than 100"

輸入

任一整數

輸出

依照題目要求輸出結果

範例輸入 #1

-5

範例輸出 #1

negative number

範例輸入 #2

0

範例輸出 #2

between 0 and 10

範例輸入 #3

50

範例輸出 #3

between 11 and 100

範例輸入 #4

150

範例輸出 #4

bigger than 100

Comments

There are no comments at the moment.