diff --git a/savingforretirement.py b/savingforretirement.py new file mode 100644 index 0000000..8c796ed --- /dev/null +++ b/savingforretirement.py @@ -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()