<?php
$deposit = 10000;
$percent = 1.1;
for ($age = 16; $deposit <= 1000000; $age++) {
$deposit = $deposit * $percent;
$time++;
if ($deposit >= 1000000) {
echo "bingo\n";
break;
}
}
echo "Некто {$age} лет Сумма равна {$deposit} Прошло {$time} лет";
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7CgokZGVwb3NpdCA9IDEwMDAwOwokcGVyY2VudCA9IDEuMTsKCmZvciAoJGFnZSA9IDE2OyAkZGVwb3NpdCA8PSAxMDAwMDAwOyAkYWdlKyspIHsKCSRkZXBvc2l0ID0gJGRlcG9zaXQgKiAkcGVyY2VudDsKCSR0aW1lKys7CglpZiAoJGRlcG9zaXQgPj0gMTAwMDAwMCkgewoJCWVjaG8gImJpbmdvXG4iOwoJCWJyZWFrOwoJfQp9CgplY2hvICLQndC10LrRgtC+IHskYWdlfSDQu9C10YIg0KHRg9C80LzQsCDRgNCw0LLQvdCwIHskZGVwb3NpdH0g0J/RgNC+0YjQu9C+IHskdGltZX0g0LvQtdGCIjs=