CJCoding With Joseph
15per day

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
Topics:
LoopsUser Input
๐Ÿ“ฅ Auto-Input:
3\n
This input is automatically fed to your program's stdin
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท 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.