Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num = 11
- increment = 1
- while 11 <= num <= 100:
- if num == 20:
- increment = 2
- elif num == 40:
- increment = -1
- elif num == 21:
- num = 41
- increment = 5
- print(num)
- num += increment
- if num > 100:
- print("Number is more than 100")
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement