fork download
  1. <?php
  2.  
  3.  
  4. $year = 16;
  5. $bank = 10000;
  6. $percent = 1.1;
  7.  
  8. for ($year=16;$year <100;$year++){
  9. if($bank == $bank * $percent >1000000){
  10. echo "в банке {$bank} этому некто исполнилось $year\n";
  11. break;
  12. }
  13.  
  14.  
  15. }
  16.  
  17.  
Success #stdin #stdout 0.02s 52480KB
stdin
Standard input is empty
stdout
Standard output is empty