CodeLab Academy 📞 9936 6696
← List Python · Level 8: Nested loops Code · 80 points ← #729 #731 →

#730. Multiplication table a×b

You are given a and b. Print a table with a rows and b columns where the j-th value in the i-th row is i·j. ### Input One line: a b (1-12). ### Output a lines.

Examples

Input
10 4
Output
1 2 3 4
2 4 6 8
3 6 9 12
4 8 12 16
5 10 15 20
6 12 18 24
7 14 21 28
8 16 24 32
9 18 27 36
10 20 30 40
Input
2 3
Output
1 2 3
2 4 6

💡 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!