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