CodeLab Academy 📞 9936 6696
← List Python · Level 4: For loops Code · 40 points ← #357 #359 →

#358. Multiplication table (1-12)

You get an integer n. Print the multiplication table of n from 1 to 12 in the form `n x i = result`. ### Input One integer n (1 ≤ n ≤ 20). ### Output 12 lines.

Examples

Input
15
Output
15 x 1 = 15
15 x 2 = 30
15 x 3 = 45
15 x 4 = 60
15 x 5 = 75
15 x 6 = 90
15 x 7 = 105
15 x 8 = 120
15 x 9 = 135
15 x 10 = 150
15 x 11 = 165
15 x 12 = 180
Input
14
Output
14 x 1 = 14
14 x 2 = 28
14 x 3 = 42
14 x 4 = 56
14 x 5 = 70
14 x 6 = 84
14 x 7 = 98
14 x 8 = 112
14 x 9 = 126
14 x 10 = 140
14 x 11 = 154
14 x 12 = 168

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!