CJCoding With Joseph
15free / daySign inCreate account

Print the multiplication table for 3, from 3 x 1 all the way up to 3 x 10. Each line should look exactly like "3 x 1 = 3". Use a loop where the counter goes from 1 to 10, and build each line by joining the text and the numbers together with the + operator.

Expected output

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
3 x 10 = 30

= newline. The output ends with a newline, so print one after the last line.

Hints2 available
Topics
Loops
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (clog, fn, fori)

Your output

Run your code to see the output here...

Test cases

Run your code to see test case results.