Advertisement
Guest User

Untitled

a guest
Feb 18th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. total = 0
  2. x = 0
  3. point = input("How many points per task? ")
  4. need = input("How many points are needed? ")
  5.  
  6. while total < int(need):
  7.     x += 1
  8.     total += 4
  9.     if x % 10 == 0:
  10.         total += int(point) * 5
  11.     if x % 50 == 0:
  12.         total += int(point) * 15
  13.     if x % 100 == 0:
  14.         total += int(point) * 25
  15.     if x % 250 == 0:
  16.         total += int(point) * 35
  17.     if x % 1000 == 0:
  18.         total += int(point) * 50
  19.  
  20. print("Number of tasks: " + str(x) + " Points obtained: " + str(total))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement