fork download
  1. <?php
  2.  
  3. function bankDifference($creditSum, $monthPay) {
  4. for ($i = 0; $creditSum = 0; $i++){
  5. $totalSum = $creditSum
  6. }
  7. return $totalSum;
  8. }
  9.  
  10. $creditSum = 39999;
  11. $monthPay = 5000;
  12. $homoBank = ($creditSum * 1.04) + 500;
  13. $strawberryBank = ($creditSum * 1.02) + 7777;
  14. $softBank = ($creditSum * 1.03) + 1000;
  15.  
  16. echo "{$homoBank}\n";
  17. echo "{$strawberryBank}\n";
  18. echo "{$softBank}\n";
Success #stdin #stdout 0.02s 24448KB
stdin
Standard input is empty
stdout
42098.96
48575.98
42198.97