#include <bits/stdc++.h> using namespace std; int tab[100][100]; int main(){ for(int i = 0; i < 100;i=i+3){ for(int j = 0; j < 100; j=j+5){ tab[i][j] = rand()%2; cout << tab[i][j]; } cout << endl; } return 0; }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #include <bits/stdc++.h> using namespace std; int tab[100][100]; int main(){ for(int i = 0; i < 100;i=i+3){ for(int j = 0; j < 100; j=j+5){ tab[i][j] = rand()%2; cout << tab[i][j]; } cout << endl; } return 0; } |