DerioFT

decision03

Aug 13th, 2020
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. Nama = input("Nama : ")
  2. Umur = int(input("Umur : "))
  3.  
  4. Oma = 64
  5. Tante = 50
  6. Bunda = 30
  7. Mba = 20
  8.  
  9. if Umur >= Oma:
  10.     print(f"Halo, Oma {Nama}")
  11. elif Umur >= Tante:
  12.     print(f"Halo, Tante {Nama}")
  13. elif Umur >= Bunda:
  14.     print(f"Halo, Bunda {Nama}")
  15. elif Umur >= Mba:
  16.     print(f"Halo, Mba {Nama}")
  17. else:
  18.     print(f"Halo, Adek {Nama}")
Advertisement
Add Comment
Please, Sign In to add comment