PatrickFrankAIU / ITWEB220-2404A

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

Exercise: Numbers in Multiples #19

Open PatrickFrankAIU opened 3 months ago

PatrickFrankAIU commented 3 months ago

Write a loop that prints numbers from 1 to 50, but only displays numbers that are multiples of 5.

Tip: Use the modulus operator to determine whether a number is a multiple of 5.

Correct output: 5 10 15 20 25 30 35 40 45 50