Advertisement
Guest User

eimai o mpelsis xarika

a guest
Nov 20th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. sinolo_am=0
  2. sinolo_gr=0
  3. for i in range (40):
  4. onoma=input("Dwse to onoma sou: ")
  5. grapta=input("Dwse grapta: ")
  6. if grapta>=1 and grapta<=20:
  7. salary=grapta*1
  8. elif grapta>=21 and grapta<=40:
  9. salary=20*1+(grapta-20)*2
  10. elif grapta>40:
  11. salary=20*1+20*2+(grapta-40)*0.5
  12. sinolo_am=sinolo_am + salary
  13. sinolo_gr=sinolo_gr+grapta
  14. print "Sinolo amoivi: ", sinolo_am, "Sinolo grapta: ",sinolo_gr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement