← Back to Loops
Question 198
The Six Times Table
The Six Times Table
Write a program that prints the 6 times table from 6 x 1 up to 6 x 10. Each line should be formatted exactly like 6 x 1 = 6, showing the multiplier and the product. Use a loop that counts from 1 to 10 and multiplies by 6 each time. No input is needed.
Expected Output:
6 x 1 = 6 6 x 2 = 12 6 x 3 = 18 6 x 4 = 24 6 x 5 = 30 6 x 6 = 36 6 x 7 = 42 6 x 8 = 48 6 x 9 = 54 6 x 10 = 60
= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
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 (p, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.