CJCoding With Joseph

Multiplication Table from Input

Read 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
Topics:
User Input
๐Ÿ“ฅ Auto-Input:
2\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 (p, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.