<?php
$money=10000;
$percent=1.1;
$age = 16;
for ($year=1; $year <=1000; $year++){
$money=$money*$percent;
$age = $age+1;
if ($money>=1000000){
echo "спустя {$year} лет, денег стало {$money}. Тем временем анону {$age} лет\n";
break;
}
}
// your code goes here
PD9waHAKJG1vbmV5PTEwMDAwOwokcGVyY2VudD0xLjE7CiRhZ2UgPSAxNjsKZm9yICgkeWVhcj0xOyAkeWVhciA8PTEwMDA7ICR5ZWFyKyspewoJJG1vbmV5PSRtb25leSokcGVyY2VudDsKCSRhZ2UgPSAkYWdlKzE7CmlmICgkbW9uZXk+PTEwMDAwMDApewoJZWNobyAi0YHQv9GD0YHRgtGPIHskeWVhcn0g0LvQtdGCLCDQtNC10L3QtdCzINGB0YLQsNC70L4geyRtb25leX0uINCi0LXQvCDQstGA0LXQvNC10L3QtdC8INCw0L3QvtC90YMgeyRhZ2V9INC70LXRglxuIjsKYnJlYWs7Cn0KfQovLyB5b3VyIGNvZGUgZ29lcyBoZXJl