Problem Statement
Write a program to multiply every element of a matrix by a scalar value K. Input is Matrix followed by K.
DEMO-C-32 โข Programming in C
Write a program to multiply every element of a matrix by a scalar value K. Input is Matrix followed by K.
Input: Dimensions N M followed by the matrix elements.
Output: The formatted result as specified.
Submit runs every public testcase in this browser. Results and code never leave this device.
3 3 -3 35 4 14 13 -2 6 34 47 3
-9 105 12 42 39 -6 18 102 141
3 5 -3 -3 12 2 14 38 3 17 13 -5 38 19 -3 42 19 1
-3 -3 12 2 14 38 3 17 13 -5 38 19 -3 42 19
2 3 19 -10 25 40 37 15 3
57 -30 75 120 111 45
3 3 -7 16 -6 -8 29 -6 29 24 22 8
-56 128 -48 -64 232 -48 232 192 176
C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.
/workspace/question