Guest User

Untitled

a guest
Sep 16th, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.82 KB | None | 0 0
  1.  
  2. #include <iostream>
  3. #include <iomanip>
  4. using namespace std;
  5.  
  6. const int MAX= 10;
  7. const int MAX2= 10;
  8. int A[MAX][MAX2],i,j;
  9. int o=1;
  10. int counter=0;
  11. int e= i + 1;
  12.  
  13. int main()
  14. {
  15.     i=0;
  16.     while (i < 10)                                                                                                                                                        {
  17.     j=0;
  18.  
  19.         while (j < 10){
  20.            
  21.            
  22.             o=i;
  23.            
  24.            
  25.             A[i][j] = o+1;
  26.                
  27.                
  28.            
  29.                
  30.                
  31.                
  32.             j++;
  33.             o++;
  34. }
  35.         i++;
  36.     }
  37.    
  38.    
  39.     while (counter < 100)
  40.        
  41.     {
  42.         cout << A[j][i];
  43.         counter++;
  44.         j++;
  45.         i++;
  46.     }
  47.    
  48.     return 0;
  49. }
Advertisement
Add Comment
Please, Sign In to add comment