balance = int(input("Счет - "))
percent = int(input("% - "))
years = 0
print(balance)
while balance < 50000:
years += 1
balance = balance + balance * percent / 100
print(years)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
balance = int(input("Счет - "))
percent = int(input("% - "))
years = 0
print(balance)
while balance < 50000:
years += 1
balance = balance + balance * percent / 100
print(years)