<?php
header("Content-Type: text/plain; charset=utf-8");
$bankAccount = 10000;
$percentage = 1.10;
$age = 16;
for ($i = 1; $i <= 100; $i ++) {
$age ++;
$bankAccount *= $percentage;
if ($bankAccount >= 1000000) {
echo "Счет в банке спустя {$i} лет - {$bankAccount} \n";
echo "Через {$i} лет в банке будет миллион. Анончику будет {$age} лет. \n";
if ($age <= 80) {
echo "Анон будет жив. Возможно... \n";
} else {
echo "Анон умрет. \n";
}
break;
}
}
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7CmhlYWRlcigiQ29udGVudC1UeXBlOiB0ZXh0L3BsYWluOyBjaGFyc2V0PXV0Zi04Iik7CgokYmFua0FjY291bnQgPSAxMDAwMDsKJHBlcmNlbnRhZ2UgPSAxLjEwOwokYWdlID0gMTY7Cgpmb3IgKCRpID0gMTsgJGkgPD0gMTAwOyAkaSArKykgewogICAgCiAgICAkYWdlICsrOwogICAgJGJhbmtBY2NvdW50ICo9ICRwZXJjZW50YWdlOwogICAgCiAgICBpZiAoJGJhbmtBY2NvdW50ID49IDEwMDAwMDApIHsKICAgICAgICBlY2hvICLQodGH0LXRgiDQsiDQsdCw0L3QutC1INGB0L/Rg9GB0YLRjyB7JGl9INC70LXRgiAtIHskYmFua0FjY291bnR9IFxuIjsKICAgICAgICBlY2hvICLQp9C10YDQtdC3IHskaX0g0LvQtdGCINCyINCx0LDQvdC60LUg0LHRg9C00LXRgiDQvNC40LvQu9C40L7QvS4g0JDQvdC+0L3Rh9C40LrRgyDQsdGD0LTQtdGCIHskYWdlfSDQu9C10YIuIFxuIjsKICAgICAgICBpZiAoJGFnZSA8PSA4MCkgewogICAgICAgICAgICBlY2hvICLQkNC90L7QvSDQsdGD0LTQtdGCINC20LjQsi4g0JLQvtC30LzQvtC20L3Qvi4uLiBcbiI7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgZWNobyAi0JDQvdC+0L0g0YPQvNGA0LXRgi4gXG4iOwogICAgICAgIH0KICAgICAgICBicmVhazsKICAgIH0gCn0=