Multiplication Table from Input
hardQuestion 320Read an integer n from standard input and print its multiplication table from 1 to 10. Print one line per multiplier in the exact format n x i = product, for i from 1 to 10, each line ending with a newline. For example, if the input is 2, the first line is 2 x 1 = 2 and the last line is 2 x 10 = 20.
Expected output
2 x 1 = 2 2 x 2 = 4 2 x 3 = 6 2 x 4 = 8 2 x 5 = 10 2 x 6 = 12 2 x 7 = 14 2 x 8 = 16 2 x 9 = 18 2 x 10 = 20
= newline. The output ends with a newline, so print one after the last line.
Hints2 available
Sign in to use hintsTopics
User Input
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.