Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <cmath>
- #include <math.h>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- int n;
- int a[100];
- int main() {
- cin >> n;
- srand(time(0));
- for(int i = 1; i <= n; i++){
- for(int j = 1; j <= n; j++){
- cout << rand() % 10 << " ";
- }
- cout<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement