Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Implement a program to perform matrix multiplication.

Medium

Problem Statement

Implement a program to perform matrix multiplication.

Sample Input

Two matrices of size 2x2.

Sample Output

Resultant matrix after multiplication:
19 22 
43 50 

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
#include <iostream> int main() { int A[2][2] = {{1, 2}, {3, 4}}; int B[2][2] = {{5, 6}, {7, 8}}; // Logic for matrix multiplication return 0; }
Log in or sign up to run or submit your code.Log inSign up
Input
Two matrices of size 2x2.
Expected Output
Resultant matrix after multiplication:
19 22 
43 50