Print the multiplication table for a given factor.
An integer \(n \in \mathbb{Z}\).
The multiplication table of \(n\) from 1 to 10.
12
1 * 12 = 12
2 * 12 = 24
3 * 12 = 36
4 * 12 = 48
5 * 12 = 60
6 * 12 = 72
7 * 12 = 84
8 * 12 = 96
9 * 12 = 108
10 * 12 = 120
If you solved the previous exercise with a for
loop, then do it again with a
while
loop. If you solved it with a while
loop, then do it again with a for
loop. If you did not use a loop at all, you should be ashamed of yourself.