Created
April 11, 2020 06:38
-
-
Save palcodes/f4f4ba159ab3db8e92f2710c59479b76 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main() { | |
int size = 10; | |
var i, j; | |
List<List<int>> mat = new List<List<int>>(size); | |
for (i = 0; i < size; i++) { | |
List<int> list = new List<int>(size); | |
for (j = 0; j < size; j++) { | |
list[j] = j; | |
} | |
mat[i] = list; | |
} | |
print(mat); | |
print("PRINT AN ELEMENT:"); | |
print(mat[4][2]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment