fork(1) download
  1. <?php
  2.  
  3. function totalPay($monthPay, $tax, $creditSum, $bankPercent) {
  4. for($i = 0; $i <= 20; $i++){
  5. $totalCredit = $creditSum * $bankPercent + $tax - $monthPay;
  6. $total = 0;
  7. $total = $total + $monthPay;
  8. if($totalCredit < $monthPay){
  9. brea
  10. }
  11. }
  12. return $totalCredit;
  13. }
  14.  
  15. $homoCredit = totalPay(5000, 500, 39999, 1.04);
  16. $softBank = totalPay(5000, 1000, 39999, 1.03);
  17. $strawberryBank = totalPay(5000, 0, 39999, 1.02);
  18. $strawberryBankTax = $strawberryBank + 7777;
  19.  
  20. echo "{$homoCredit}\n";
  21. echo "{$softBank}\n";
  22. echo "{$strawberryBank}\n";
Runtime error #stdin #stdout #stderr 0.02s 24400KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected '}' in /home/6mZPKI/prog.php on line 11