Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 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