<?php
$firstInputMoney=10000;
for($i=1;$firstInputMoney!=1000000;$i++){
$firstInputMoney=$firstInputMoney+(($firstInputMoney/100)*10);
$b=$i;
}
echo "Миллион накопится через $b лет ";
?>
PD9waHAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKJGZpcnN0SW5wdXRNb25leT0xMDAwMDsKZm9yKCRpPTE7JGZpcnN0SW5wdXRNb25leSE9MTAwMDAwMDskaSsrKXsKCSRmaXJzdElucHV0TW9uZXk9JGZpcnN0SW5wdXRNb25leSsoKCRmaXJzdElucHV0TW9uZXkvMTAwKSoxMCk7CgkkYj0kaTsKCgl9CmVjaG8gItCc0LjQu9C70LjQvtC9INC90LDQutC+0L/QuNGC0YHRjyDRh9C10YDQtdC3ICRiINC70LXRgiAiOwoKPz4=