2x2 matrices M and N and display the sum of the matrices. #include <stdio.h> int main() { int M[2][2], N[2][2], sum[2][2]; int i, j; // Input…