Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int x,y;
- printf ("podaj rozmiar ");
- scanf("%d",&y);
- scanf("%d",&x);
- int **tab =(int**) malloc(y*sizeof(int*));
- for(int i = 0 ; i < y ;i++)
- tab[i] = (int* ) malloc(x* sizeof(int*));
- srand(time(NULL));
- for(int k = 0 ; k<y ; k++)
- {
- for(int j = 0 ; j < x ; j ++ )
- {
- tab[k][j]=rand() %10 ;
- printf("%d ",tab[k][j]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement