fork(4) download
  1. <?php
  2. $percent = 1.1;
  3. $age = 16;
  4. $year = 0;
  5.  
  6. for ($ballance = 10000; $ballance >= 1000000; $ballance = $ballance * $percent) {
  7. if ($ballance >= 1000000) {
  8. echo "Некто заработает {$ballance},за {$year} лет, ему на тот момент будет.{$age}";
  9. break;
  10. }
  11. $year++;
  12. $age++;
  13. }
Success #stdin #stdout 0.03s 52480KB
stdin
Standard input is empty
stdout
Standard output is empty