Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- const int N = 6;
- void wypisz(int tablica[][N])
- {
- for(int i = 0; i < N; ++i)
- {
- for(int j = 0; j < N; ++j)
- cout << tablica[i][j] << '\t';
- cout << endl;
- }
- cout << endl;
- }
- int main()
- {
- int tablica[N][N];
- srand(time(nullptr));
- for(int i = 0; i < N; ++i)
- for(int j = 0; j < N; ++j)
- tablica[i][j] = rand() % 10;
- wypisz(tablica);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement