PatrickFrankAIU / ITWEB220-2404A

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

Exercise: Number Squared Less Than 50 (Requires an IF!) #18

Open PatrickFrankAIU opened 3 months ago

PatrickFrankAIU commented 3 months ago

Write a loop that logs the squares of numbers from 1 to 10, but displays the result only if it is less than 50.

Tip: Use an IF condition to check and see if the result of the calculation is below the required amount.