fork download
  1. <?php
  2.  
  3.  
  4. for ($investorAge = 16, $bill = 10000; $bill <= 1000000; $investorAge++){
  5. $bill *= 1.1;
  6. };
  7. echo "Age: $investorAge\n";
  8. echo "Bill: $".round($bill, 0)."\n";
  9. echo "Bill age: ".($investorAge-16)."\n";
Success #stdin #stdout 0.02s 52480KB
stdin
Standard input is empty
stdout
Age: 65
Bill: $1067190
Bill age: 49