update
This commit is contained in:
parent
1f1ad49427
commit
6f050a029e
2496 changed files with 37609 additions and 3031 deletions
|
|
@ -0,0 +1,12 @@
|
|||
#lang racket
|
||||
|
||||
(printf "Enter XY dimensions: ")
|
||||
(define xy (cons (read) (read)))
|
||||
(define array (for/vector ([x (car xy)]) (for/vector ([y (cdr xy)]) 0)))
|
||||
|
||||
(printf "Enter a number for the top-left: ")
|
||||
(vector-set! (vector-ref array 0) 0 (read))
|
||||
(printf "Enter a number for the bottom-right: ")
|
||||
(vector-set! (vector-ref array (sub1 (car xy))) (sub1 (cdr xy)) (read))
|
||||
|
||||
array
|
||||
Loading…
Add table
Add a link
Reference in a new issue