fb pixel

Multiples of n

Back when you had to memorize the multiplication table, the process was hard and now you nephew is trying to study math, so you decide to help. You decide to write a program that would print all the multiples (1, 2, ... 9, 10) of n in a table.
The program receives a single input - the number n. The output should contain all the multiples of n in the output.
Input
Output
7
7 * 1 = 7 7 * 2 = 14 7 * 3 = 21 7 * 4 = 28 7 * 5 = 35 7 * 6 = 42 7 * 7 = 49 7 * 8 = 56 7 * 9 = 63 7 * 10 = 70
 
To check your solution you need to sign in
Sign in to continue