Tile problems › T0707
Build it: Times table
Let's put together what you learned in chapter 7. Read a number from one line of input and write its times table from 1 to 9.
If you enter 3, this comes out.
3 x 1 = 3
3 x 2 = 6
…
3 x 9 = 27
The variable times holds the number to multiply by. It already grows to 1, 2, 3… each time the loop repeats. Put a tile below it that writes one line.
Sample input
3
Expected
3 x 1 = 3 3 x 2 = 6 3 x 3 = 9 3 x 4 = 12 3 x 5 = 15 3 x 6 = 18 3 x 7 = 21 3 x 8 = 24 3 x 9 = 27
Loading tiles…