<?php
$percent = 1.1;
$age = 16;
$year = 0;
for ($ballance = 10000; $ballance >= 1000000; $ballance = $ballance * $percent) {
if ($ballance >= 1000000) {
echo "Некто заработает {$ballance},за {$year} лет, ему на тот момент будет.{$age}";
break;
}
$year++;
$age++;
}
PD9waHAKJHBlcmNlbnQgID0gMS4xOwokYWdlID0gMTY7CiR5ZWFyID0gMDsKCmZvciAoJGJhbGxhbmNlID0gMTAwMDA7ICRiYWxsYW5jZSA+PSAxMDAwMDAwOyAkYmFsbGFuY2UgPSAkYmFsbGFuY2UgKiAkcGVyY2VudCkgewoJaWYgKCRiYWxsYW5jZSA+PSAxMDAwMDAwKSB7CgkJZWNobyAi0J3QtdC60YLQviDQt9Cw0YDQsNCx0L7RgtCw0LXRgiB7JGJhbGxhbmNlfSzQt9CwICB7JHllYXJ9INC70LXRgiwg0LXQvNGDINC90LAg0YLQvtGCINC80L7QvNC10L3RgiDQsdGD0LTQtdGCLnskYWdlfSI7CgkJYnJlYWs7Cgl9CgkkeWVhcisrOwoJJGFnZSsrOwp9