Multiplication Table

Lab Python Beginner 10 points

Read n and print its table from 1 to 10 in the form n x i = result.

Input

One integer.

Output

10 lines.

Example

Input

7

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
Sample input available Sample output available
Editor
Python

Hints

Loop i from 1 to 10 and use an f-string.

Solution explanation

The loop variable changes each time round, so the same line prints different values.

Show solution
n = int(input())
for i in range(1, 11):
    print(f"{n} x {i} = {n * i}")
Output
Answer
HOME LEARN COMMUNITY DASHBOARD