Write a C program to read two 3x3 matrices and perform matrix addition/multiplication.
#include <stdio.h>
int main()
{
int a[3][3], b[3][3], c[3][3];
int i, j, k, choice;
printf("Enter the elements of first matrix:\n");
for (i = 0; i < 3; i++) {
for (j = 0; j < 3; j++) {
scanf("%d", &a[i][j]);
}
}
printf("Enter the elements of second matrix:\n");
for (i = 0; i < 3; i++) {
for (j = 0; j < 3; j++) {
scanf("%d", &b[i][j]);
}
}
printf("Enter your choice:\n");
printf("1. Addition\n");
printf("2. Multiplication\n");
...