Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/Loops-Do-while/Smalltalk/loops-do-while-1.st
Normal file
6
Task/Loops-Do-while/Smalltalk/loops-do-while-1.st
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
|val|
|
||||
val := 0.
|
||||
[
|
||||
val := val + 1.
|
||||
val displayNl.
|
||||
] doWhile: [ (val rem: 6) ~= 0 ]
|
||||
6
Task/Loops-Do-while/Smalltalk/loops-do-while-2.st
Normal file
6
Task/Loops-Do-while/Smalltalk/loops-do-while-2.st
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
|val|
|
||||
val := 0.
|
||||
[
|
||||
val := val + 1.
|
||||
val displayNl.
|
||||
] doUntil: [ (val rem: 6) == 0 ]
|
||||
7
Task/Loops-Do-while/Smalltalk/loops-do-while-3.st
Normal file
7
Task/Loops-Do-while/Smalltalk/loops-do-while-3.st
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
|val|
|
||||
val := 0.
|
||||
[
|
||||
val := val + 1.
|
||||
val displayNl.
|
||||
(val rem: 6) ~= 0
|
||||
] whileTrue: [ ]
|
||||
7
Task/Loops-Do-while/Smalltalk/loops-do-while-4.st
Normal file
7
Task/Loops-Do-while/Smalltalk/loops-do-while-4.st
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
|val|
|
||||
val := 0.
|
||||
[
|
||||
val := val + 1.
|
||||
val displayNl.
|
||||
(val rem: 6) ~= 0
|
||||
] whileTrue
|
||||
Loading…
Add table
Add a link
Reference in a new issue