codice:#include <stdio.h> int main(){ int k; int y; printf("inserire dimensione riga negozio "); scanf("%d",&k); int tablet_negozio[k][2]; printf("inserire dimensione riga deposito "); scanf("%d",&y); int tablet_deposito[y][2]; int i; int j; int p; int codice_tablet; int Quantita_tablet[?][2];//? dimensione non definita j=0; for(i=0;i<k;i++){ printf("inserire codice tablet negozio"); scanf("%d",&codice_tablet); tablet_negozio[i][j]=codice_tablet; } for(i=0;i<y;i++){ printf("inserire codice tablet deposito "); scanf("%d",&codice_tablet); tablet_deposito[i][j]=codice_tablet; } j=1; for(i=0;i<k;i++){ printf("codice tablet=%d presente nel negozio ",tablet_negozio[i][j-1]); scanf("%d",&tablet_negozio[i][j]); } for(i=0;i<y;i++) { printf("codice tablet=%d presente nel deposito ",tablet_deposito[i][j-1]); scanf("%d",&tablet_deposito[i][j]); } i=0; j=0; p=0; do { if(tablet_negozio[i][j]==tablet_deposito[p][j]){ Quantita_tablet[i][j+1]=tablet_negozio[i][j+1]+tablet_deposito[p][j+1]; Quantita_tablet[i][j]=tablet_negozio[i][j]; } if(tablet_deposito[p][j]>tablet_negozio[i][j]){ Quantita_tablet[i][j+1]=tablet_deposito[p][j+1]; Quantita_tablet[i][j]=tablet_deposito[y][j]; } if(tablet_deposito[p][j]<tablet_negozio[i][j]) { Quantita_tablet[i][j+1]=tablet_negozio[i][j+1]; Quantita_tablet[i][j]=tablet_negozio[i][j]; } i++; p++; }while(i<?); j=1; for(i=0;i<?;i++) { printf("tablet codice=%d in totale=%d \n",Quantita_tablet[i][j-1],Quantita_tablet[i][j]); } }