PatrickFrankAIU / ITWEB220-2404A

Learning resources for students in ITWEB 220, term 2404A.
0 stars 0 forks source link

Exercise: Small, Medium or Large! #21

Open PatrickFrankAIU opened 3 months ago

PatrickFrankAIU commented 3 months ago

Write a loop that counts from 1 to 15 and logs whether each number is "Small" (1-5), "Medium" (6-10), or "Large" (11-15).

Tip: Each category will require a condition, and each condition will require an AND operator (&&) to verify that the value is within the selected range.

Expected Output: 1 is Small 2 is Small 3 is Small 4 is Small 5 is Small 6 is Medium 7 is Medium 8 is Medium 9 is Medium 10 is Medium 11 is Large 12 is Large 13 is Large 14 is Large 15 is Large