Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/Loops-Infinite/Icon/loops-infinite-1.icon
Normal file
3
Task/Loops-Infinite/Icon/loops-infinite-1.icon
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
procedure main()
|
||||
repeat write("SPAM")
|
||||
end
|
||||
9
Task/Loops-Infinite/Icon/loops-infinite-2.icon
Normal file
9
Task/Loops-Infinite/Icon/loops-infinite-2.icon
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
until &fail do write("SPAM") # always fails, needs succeed to break
|
||||
...
|
||||
while write("SPAM") # always succeeds, needs failure to break
|
||||
...
|
||||
every write(|"SPAM") # generator always succeeds, needs failure to break
|
||||
...
|
||||
while write(|"SPAM") # this is a common mistake that results in an endless loop
|
||||
...
|
||||
while write(1 to 5) # a clearer version of the same mistake that generates endless 1's
|
||||
Loading…
Add table
Add a link
Reference in a new issue