JustCaptain kod-buduschego
llm/senior-883e8c
Перейти к файлу
Код
kod-buduschego Python 2025-20262.5. Цикл Whilepracticeschatgpt1task_2.py
anc update c70a58f 8 октября 2026 г.
task_2.py
target: int = 100000
daily_income: int = 15000
current: int = 0
balance: int = 0

while balance < target:
    balance += daily_income
    current += 1
    
print(f"Итоговая сумма: {balance}\nКол-во дней: {current}")