Mutiplication & Nested Loops


Collapse Content

These challenges will involve nested loops, where one loop (the inner loop) is placed inside another loop (the outer loop). Every iteration of the outer loop will loop through the inner loop's cycle.

Printing and loop practice involved printing the multiples of a single number. Can you print a complete multiplication table? It should consist of 10 lines from 1 to 10 with 10 products on each line. For example, the 5th number on the 4th row should be 4 * 5 = 20. The first two lines should be:

1 2 3 4 5 6 7 8 9 10
2 4 6 8 10 12 14 16 18 20

Challenge

Print a multiplication table of all the numbers from 1 through 10.

Please sign in or sign up to submit answers.

Alternatively, you can try out Learneroo before signing up.

Contact Us
Sign in or email us at [email protected]