Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int tab2D[10][10];
- int x=0;
- int z=1;
- do
- {
- int y=0;
- do
- {
- tab2D[x][y] = z;
- z++;
- y++;
- } while(y<10);
- x++;
- } while(x<10);
- for(int i=0; i<10; i++)
- {
- for(int j=0 ;j<10; j++)
- {
- cout << tab2D[i][j] << " ";
- }
- cout << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment