Experiment 10
Experiment 10
EXPERIMENT NO- 10
Object: WAP to take input of two matrices and print their product.
Program:
#include<stdio.h>
#include<conio.h>
void main(){
int mat1[10][10],mat2[10][10],i,j,dim11,dim12,dim21,dim22;
clrscr();
scanf("%d %d",&dim11,&dim12);
scanf("%d %d",&dim21,&dim22);
scanf("%d",&mat1[i][j]);
Page 1 of 2
scanf("%d",&mat2[i][j]);
printf("%d ",mat1[i][j]);
printf("\n");
getch();
Output:
Year: 2nd
Section: CS3
Page 2 of 2