fork download
  1. <?php
  2. $investorAge=16;
  3. $yearsUntillAMillion=0;
  4.  
  5. for($x=10000;$x<=1000000;$x=$x+$x*0.1) {
  6. $investorAge+=1;
  7. $yearsUntillAMillion+=1;
  8. }
  9. echo "Столько лет будет инвестору {$investorAge}\n";
  10. echo "{$yearsUntillAMillion} лет до миллиона";
  11. ?>
Success #stdin #stdout 0.02s 23728KB
stdin
Standard input is empty
stdout
Столько лет будет инвестору 65
49 лет до миллиона