CJCoding With Joseph
15free / daySign inCreate account

Times Table for 3

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 — 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.