Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- total = 0
- x = 0
- point = input("How many points per task? ")
- need = input("How many points are needed? ")
- while total < int(need):
- x += 1
- total += 4
- if x % 10 == 0:
- total += int(point) * 5
- if x % 50 == 0:
- total += int(point) * 15
- if x % 100 == 0:
- total += int(point) * 25
- if x % 250 == 0:
- total += int(point) * 35
- if x % 1000 == 0:
- total += int(point) * 50
- print("Number of tasks: " + str(x) + " Points obtained: " + str(total))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement