RosettaCodeData/Task/Loops-Nested/E/loops-nested.e

15 lines
312 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
def array := accum [] for i in 1..5 { _.with(accum [] for i in 1..5 { _.with(entropy.nextInt(20) + 1) }) }
escape done {
for row in array {
for x in row {
print(`$x$\t`)
if (x == 20) {
done()
}
}
println()
}
}
println("done.")