Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Postovani kolega,
- Evo ispravljene vase funkcije. Ako nije jasno kako radi javite se...
- void kopiraj(int matrica1[][3], int matrica2[][3])
- {
- int brojac=1;
- int brojacRed = 0;
- int brojacKol = 0;
- for (int i = 0; i < 4; i++)
- {
- for (int j = 0; j < 3; j++)
- {
- brojac++;
- if (brojac%2!=0)
- {
- matrica2[brojacRed][brojacKol++] = matrica1[i][j];
- if(brojacKol%3==0)
- {
- brojacRed++;
- brojacKol=0;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement