Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  jj
Language: C/C++
Code:
#include<IOstream.h>
#include<conio.h>
void main(){
     clrscr();
     int i,j,k,s;
     int a[4][3]={
          {4,6,2},
          {7,8,3},
          {9,3,1},
          {2,1,2}
     };
     int b[3][3]={
          {3,5,7},
          {8,22,1},
          {7,33,2}
     };
     cout<<"multiplication is"<<endl;
     for(i=0;i<4;i++){
          for(j=0;j<3;j++){
               for(k=0;k<4;k++){
                    s=s+a[i][k]*b[k][j];
                    cout<<s<<"/t";
                    s=0;
               }
               cout<<endl;
          }
          getch();
     }
}
          
Comments: