Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(){
- int est[2][3]={{1000,8000,4000},{8000,6000,6000}};
- int mat[2][2]={{16,12},{6,4}};
- int tot[2][3]={{0,0,0},{0,0,0}};
- int *aux;
- int *aux2;
- int i, j;
- aux2=*mat;
- for(i=0;i<2;i++){
- aux=*est;
- for(j=0;j<3;j++){
- tot[i][j]= (*aux2) * (*aux) + (*(aux2+1)) * (*(aux+3));
- aux++;
- printf("%d\t",tot[i][j]);
- }
- printf("\n");
- aux2+=2;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement