From dcb0d9fe00e81235dd5dabe7f0379c0bdb2a5fa3 Mon Sep 17 00:00:00 2001 From: Jethro Stapelbroek Date: Fri, 23 Jun 2023 07:29:52 +0000 Subject: [PATCH] Saving For Retirement --- savingforretirement.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 savingforretirement.py 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()