fork download
  1. <?php
  2.  
  3.  
  4. $debt = "40000";
  5.  
  6. $day = 0;
  7.  
  8. for ($debt = 40000 + 1000 * 1.03; $debt > 0; $debt = ($debt + 1000 * 1.03)) {
  9. $debt = ($debt - 5000);
  10. $day++;
  11. }
  12.  
  13. echo $day;
  14.  
  15. ?>
Success #stdin #stdout 0.02s 24448KB
stdin
Standard input is empty
stdout
11