fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. #include <iostream>
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10. const int MAX_ROWS = 2;
  11. const int MAX_COLS = 4;
  12.  
  13. int BigSmall[MAX_ROWS][MAX_COLS] =
  14. {
  15. {1,3,5,7},
  16. {2,4,6,8}
  17. };
  18.  
  19. for( int Row = MAX_ROWS-1; Row >= 0 ; Row--) {
  20. for( int Column = MAX_COLS - 1; Column >= 0 ; Column--) {
  21. cout << "Integer[" << Row << "][" << Column << "] = " << BigSmall[Row][Column] << endl;
  22. }
  23. }
  24. return 0;
  25. }
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
Integer[1][3] = 8
Integer[1][2] = 6
Integer[1][1] = 4
Integer[1][0] = 2
Integer[0][3] = 7
Integer[0][2] = 5
Integer[0][1] = 3
Integer[0][0] = 1