RosettaCodeData/Task/Create-a-two-dimensional-array-at-runtime/Elena/create-a-two-dimensional-array-at-runtime-1.elena
2024-03-06 22:25:12 -08:00

16 lines
304 B
Text

import extensions;
public program()
{
var n := new Integer();
var m := new Integer();
console.write("Enter two space delimited integers:");
console.loadLine(n,m);
var myArray := class Matrix<int>.allocate(n,m);
myArray.setAt(0,0,2);
console.printLine(myArray.at(0, 0))
}