#CCBCHBA0000014. Multiplication Table (Multiplication Table)
Multiplication Table (Multiplication Table)
Multiplication Table
Source: beecrowd
Version: Phuoc Hung OJ Extended
Problem Statement
Given n, print exactly ten lines of its multiplication table for i from 1 to 10 in the form i x n = i*n. The multiplication marker is lowercase x.
Input
One integer n.
Output
Exactly ten lines, each formatted as i x n = product with exact spaces.
Subtasks
- Subtask 1 (20%): .
- Subtask 2 (30%): .
- Subtask 3 (50%): .
Examples
Example 1
Input
3
Output
1 x 3 = 3
2 x 3 = 6
3 x 3 = 9
4 x 3 = 12
5 x 3 = 15
6 x 3 = 18
7 x 3 = 21
8 x 3 = 24
9 x 3 = 27
10 x 3 = 30
Explanation
The indices are 1 through 10; the last line is 10 x 3 = 30.