Difference between revisions of "Multi-dimensional Arrays"
From CompSciWiki
Line 1: | Line 1: | ||
{{1010PrAD|ProblemName=Multi-dimensional Arrays | {{1010PrAD|ProblemName=Multi-dimensional Arrays | ||
− | |Problem= | + | |Problem= Create two arrays, one that is 2-dimensional (2-d) and a second one that is 3 dimensional (3-d). The 2-d array will be 5x5 and you will need to store an integer value that will correspond to the row and column in the array, ie. 24, means row 2 column 4 |
|SideSectionTitle = Introducing Arrays | |SideSectionTitle = Introducing Arrays | ||
|SideSection= | |SideSection= | ||
Line 12: | Line 12: | ||
int[][] intArray; | int[][] intArray; | ||
} | } | ||
− | + | } | |
}} | }} |
Revision as of 11:02, 8 April 2010
Back to the Program-A-Day homepage
ProblemCreate two arrays, one that is 2-dimensional (2-d) and a second one that is 3 dimensional (3-d). The 2-d array will be 5x5 and you will need to store an integer value that will correspond to the row and column in the array, ie. 24, means row 2 column 4 |
Introducing Arrays | |
---|---|---|
Solution | ||
Code |