for ($i = 1; $i <= $totalDays; $i++) {
$x = bcmul($x, 2);
$y = bcadd($y, $x);
-} // END - foreach
+}
print 'After ' . $totalDays . ' days (' . $years . ' years) you have eaten ' . $y . ' fruits.' . PHP_EOL;
print 'Length:' . strlen($y) . PHP_EOL;
-
-?>