Saving For Retirement
This commit is contained in:
9
savingforretirement.py
Normal file
9
savingforretirement.py
Normal file
@@ -0,0 +1,9 @@
|
||||
b, bret, bsav, a, asav = map(int, input().split())
|
||||
btot = (bret - b) * bsav
|
||||
atot = 0
|
||||
while True:
|
||||
a += 1
|
||||
atot += asav
|
||||
if atot > btot:
|
||||
print(a)
|
||||
exit()
|
||||
Reference in New Issue
Block a user