Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- using namespace std;
- const int MAX= 10;
- const int MAX2= 10;
- int A[MAX][MAX2],i,j;
- int o=1;
- int counter=0;
- int e= i + 1;
- int main()
- {
- i=0;
- while (i < 10) {
- j=0;
- while (j < 10){
- o=i;
- A[i][j] = o+1;
- j++;
- o++;
- }
- i++;
- }
- while (counter < 100)
- {
- cout << A[j][i];
- counter++;
- j++;
- i++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment