← Back to Loops
Question 270
Seven Times Table
Seven Times Table
Print the 7 times table, from 7 x 1 = 7 all the way down to 7 x 10 = 70, with one line per row exactly like a school multiplication table. Loop a counter from 1 to 10 and, for each value, print the equation text together with its answer, where the answer is 7 multiplied by the current counter.
Expected Output:
7 x 1 = 7 7 x 2 = 14 7 x 3 = 21 7 x 4 = 28 7 x 5 = 35 7 x 6 = 42 7 x 7 = 49 7 x 8 = 56 7 x 9 = 63 7 x 10 = 70
= 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 (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.