Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
func make_matrix(x, y) {
|
||||
y.of { x.of(0) };
|
||||
}
|
||||
|
||||
var y = Sys.scanln("rows: ").to_i;
|
||||
var x = Sys.scanln("cols: ").to_i;
|
||||
|
||||
var matrix = make_matrix(x, y); # create the matrix
|
||||
matrix[y/2][x/2] = 1; # write something inside it
|
||||
say matrix; # display the matrix
|
||||
Loading…
Add table
Add a link
Reference in a new issue