Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Input = None
- Awal = None
- Akhir = None
- A = None
- B = None
- C = None
- D = None
- def text_prompt(msg):
- try:
- return raw_input(msg)
- except NameError:
- return input(msg)
- Input = float(text_prompt('Inputan'))
- Awal = float(text_prompt('Awal'))
- Akhir = float(text_prompt('Akhir'))
- A = Input
- B = Input
- C = Input * 10
- D = Input
- print(D)
- while A >= Awal and A <= Akhir:
- if A == B + 10:
- B = B + 10
- print(A)
- elif A >= C and A < C + 10:
- print(A)
- A = A + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement