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

#751. Multiply a matrix by 2

Multiply every element of the matrix by 2 and print it. ### Input The first line has n m (the number of rows and columns), each of the next n lines has m integers. ### Output n lines.

Examples

Input
2 2
8 1
-5 4
Output
16 2
-10 8
Input
2 3
-7 6 -1
-2 -6 -7
Output
-14 12 -2
-4 -12 -14

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