RosettaCodeData/Task/Create-a-two-dimensional-array-at-runtime/Elena/create-a-two-dimensional-array-at-runtime-1.elena

17 lines
304 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
import extensions;
public program()
{
var n := new Integer();
var m := new Integer();
2024-03-06 22:25:12 -08:00
console.write("Enter two space delimited integers:");
2023-07-01 11:58:00 -04:00
console.loadLine(n,m);
var myArray := class Matrix<int>.allocate(n,m);
myArray.setAt(0,0,2);
console.printLine(myArray.at(0, 0))
}