fork download
  1. <?php
  2. $credit=40000;
  3. for ($month = 1;$credit >=0;$month++) {
  4. $credit*=1.03;
  5. $credit-=4000;
  6. }
  7. echo "$month месяцев выплачивал";
  8. // your code goes here
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
14 месяцев выплачивал