CJCoding With Joseph
15free / daySign inCreate account

Multiplication Table (while)

Ask the user to enter a number, then print its multiplication table up to 10 using a while loop. Keep output simple (no prompt text).

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.

Hints4 available
Topics:
LoopsUser Input
📥 Auto-Input:
3\n
This input is automatically fed to your program's stdin
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (sysout, psvm, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.