Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/Loops-Nested/Smalltalk/loops-nested-2.st
Normal file
15
Task/Loops-Nested/Smalltalk/loops-nested-2.st
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
|i|
|
||||
|
||||
i := 1.
|
||||
[:exit1 |
|
||||
|j|
|
||||
|
||||
j := 0.
|
||||
[:exit2 |
|
||||
Transcript showCR:('i is %1 / j is %2' bindWith:i with:j).
|
||||
j == 5 ifTrue:[ exit2 value: nil ].
|
||||
i == 5 ifTrue:[ exit1 value: nil ].
|
||||
j := j + 1.
|
||||
] loopWithExit.
|
||||
i := i + 1
|
||||
] loopWithExit
|
||||
Loading…
Add table
Add a link
Reference in a new issue