mirror of
https://github.com/ossu/computer-science.git
synced 2025-11-28 00:40:24 -05:00
add missed-condition pattern 01.01.03
This commit is contained in:
parent
d7ebe7c4c7
commit
6add68fa95
1 changed files with 7 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue