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

#792. Multiply a matrix by 5

Multiply every element of the matrix by 5 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
4 2
-3 6
-4 -5
-5 -8
-9 4
Output
-15 30
-20 -25
-25 -40
-45 20
Input
4 4
0 -7 -5 5
4 -9 4 -4
1 9 -7 -1
-6 9 5 -7
Output
0 -35 -25 25
20 -45 20 -20
5 45 -35 -5
-30 45 25 -35

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