Guest User

Untitled

a guest
Feb 21st, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. void filling (int ar[][size])
  2. {
  3. srand(time(0));
  4. for (int r=0; r<size; r++)
  5. for (int c=0; c<size; c++)
  6. {
  7. res:
  8. ar[r][c]=rand()%16;
  9. for (int e=r; r>=0; e--)
  10. for (int x=c; c>=0; x--)
  11. if (ar[r][c] == ar[e][x]) goto res;
  12. }
  13. }
Add Comment
Please, Sign In to add comment