RosettaCodeData/Task/Loops-Nested/Sidef/loops-nested.sidef

12 lines
179 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
var arr = 10.of{ 10.of{ 20.irand + 1 } }
for row in arr {
for num in row {
"%3d".printf(num);
num == 20 && goto :OUT
}
print "\n"
} @:OUT
print "\n"