Lecture 11/17/2026
This commit is contained in:
parent
07b9e54bf0
commit
bf3265103a
44 changed files with 1195 additions and 3 deletions
15
lecture20261117/while/while01.py
Normal file
15
lecture20261117/while/while01.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
|
||||
print("Down counter")
|
||||
counter = 5 ;
|
||||
|
||||
while(counter > 0 ):
|
||||
print("Counter = ",counter)
|
||||
counter = counter - 1
|
||||
|
||||
counter = 0 ;
|
||||
|
||||
print("Up counter")
|
||||
while(counter < 5 ):
|
||||
print("Counter = ",counter)
|
||||
counter = counter + 1
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue