C++ code for matrix multiplication
#include<iostream.h>#include<conio.h>void main(){int a[3][3];int i,j,k;clrscr();cout<<"Enter values for Matrix\n";for( i=0;i<3;i++){for( j=0;j<3;j++){cin>>a[i][j];}}cout<<"Given matrix is :\n";for(i=0;i<3;i++){for(j=0;j<3;j++){cout<<" "<<a[i][j];}cout<<"\n";}getch();}
OUTPUT :
Enter values for Matrix123456789Given matrix is :1 2 34 5 67 8 9
Post a Comment