Practice Exercises
Practice your problem solving skills in these challenge exercises.
We'll cover the following
In this lesson, practice what we have learned so far by solving some challenges.
Printing odd multiples
Modify the program below so that only the odd multiples (1, 3, 5, 7 and so on) of the number are printed up to its 15th multiple.
So, for example, for the number 6, the odd multiples up to its 10th multiple would be:
6 x 1 = 6
6 x 3 = 18
6 x 5 = 30
6 x 7 = 35
6 x 9 = 54
Good luck!
Get hands-on with 1200+ tech skills courses.