Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cop=int(input("Nombre de copie(s) : "))
- nb = cop
- prix=0
- if nb>200:
- prix += 0.05*(nb-200)
- nb-=nb-200
- if 50<nb<=200:
- prix += 0.06*(nb-50)
- nb-=nb-50
- if 10<nb<=50:
- prix += 0.08*(nb-10)
- nb-=nb-10
- if nb<=10:
- prix += 0.1*nb
- if nb == 1:
- print("Le prix de", cop, "copie est de", prix, "€.")
- else:
- print("Le prix de", cop, "copies est de", prix, "€.")
- print("guigui est pas bo :)")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement