Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void dotablicy(int **a,int n, int m)
- {
- int **b;
- *b = (int*)malloc(sizeof(int*)*n);
- for (int i = 0; i < n; i++)
- {
- b[i] = (int*)malloc(sizeof(int)*m);
- }
- for (int i = 0; i < n; i++)
- {
- for (int j = 0; j < m; j++)
- {
- b[i][j] = a[i][j];
- }
- }
- }
- void kolos1()
- {
- int a[8][6];
- for (int i = 0; i < 8; i++)
- {
- for (int j = 0; j < 6; j++)
- {
- a[i][j]=rand()%90+10;
- printf("%d ", a[i][j]);
- }
- printf("\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement