Saving For Retirement

This commit is contained in:
2023-06-23 07:29:52 +00:00
parent a93dec111f
commit dcb0d9fe00

9
savingforretirement.py Normal file
View 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()