mirror of
https://github.com/ossu/computer-science.git
synced 2024-11-27 14:04:15 +03:00
add missed-condition pattern 01.01.03
This commit is contained in:
parent
d7ebe7c4c7
commit
6add68fa95
@ -167,3 +167,10 @@ print merge(array1, array2)
|
|||||||
i = 0
|
i = 0
|
||||||
while i < n:
|
while i < n:
|
||||||
print(i)
|
print(i)
|
||||||
|
|
||||||
|
# The missed-condition pattern (never end)
|
||||||
|
|
||||||
|
i = n
|
||||||
|
while i > 0:
|
||||||
|
print(i)
|
||||||
|
i += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user