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