ulvis.paste.net

Paste Search Dynamic
credit
  1. <?
  2.  
  3. $credit = 4000;
  4. $percent = 1.03;
  5. $mounth = 0;
  6. $value = 0;
  7.  
  8. for(;;) {
  9.         if($credit<4000) {
  10.                 $value += $credit;
  11.                
  12.                 echo "\n price = $value \n";
  13.                 echo "credit = $credit \n";
  14.                 echo "time passed = $mounth \n";
  15.                
  16.                 break;
  17.         }
  18.         $value+=5000;
  19.         $credit = $credit * $percent - 4000;
  20.        
  21.         $mounth++;
  22.        
  23.         echo "price = $value \n";
  24.         echo "credit = $credit \n";
  25.         echo "time passed = $mounth \n";
  26. }
  27. ?>
Parsed in 0.012 seconds