#C1247. Multiplication Table
Multiplication Table
Multiplication Table
Given a positive integer \(n\), generate its multiplication table from 1 to 10. For each integer \(i\) from 1 to 10, output a line in the format: n * i = result
, where result = n * i
. This problem tests your ability to perform basic loops and formatting of output. Read the input from standard input (stdin) and write the results to standard output (stdout).
inputFormat
The input consists of a single positive integer \(n\) read from standard input.
outputFormat
The output should contain exactly 10 lines. Each line should display the multiplication expression and its result in the format: n * i = result
.
3
3 * 1 = 3
3 * 2 = 6
3 * 3 = 9
3 * 4 = 12
3 * 5 = 15
3 * 6 = 18
3 * 7 = 21
3 * 8 = 24
3 * 9 = 27
3 * 10 = 30
</p>