mirror of
https://github.com/ossu/computer-science.git
synced 2025-11-27 08:20:34 -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
|
||||
while i < n:
|
||||
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