Advertisement
juan_de99

Untitled

Sep 15th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | None | 0 0
  1. int main(){
  2.     int est[2][3]={{1000,8000,4000},{8000,6000,6000}};
  3.     int mat[2][2]={{16,12},{6,4}};
  4.     int tot[2][3]={{0,0,0},{0,0,0}};
  5.     int *aux;
  6.     int *aux2;
  7.     int i, j;
  8.  
  9.     aux2=*mat;
  10.     for(i=0;i<2;i++){
  11.         aux=*est;
  12.         for(j=0;j<3;j++){
  13.             tot[i][j]= (*aux2) * (*aux) + (*(aux2+1)) * (*(aux+3));
  14.             aux++;
  15.             printf("%d\t",tot[i][j]);
  16.         }
  17.         printf("\n");
  18.         aux2+=2;
  19.     }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement