daily pastebin goal
39%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     // Opdracht 1.B
  3.     /*
  4.     $tafel1 = 4;
  5.     $tafel2 = 5;
  6.  
  7.     for($x = 0; $x < 10; $x++) {
  8.         $result1 = $tafel1 * $x;
  9.         $result2 = $tafel2 * $x;
  10.  
  11.         echo $x . " x " . $tafel1 . " = " . $result1 . "&nbsp&nbsp&nbsp&nbsp" . $x . " x " . $tafel2 . " = " . $result2 . "<br>";
  12.     }
  13.     */
  14.  
  15.     // Opdracht 2 NIET KLAAR
  16.     $maanden = 12;
  17.     $bedragMaand = 50;
  18.  
  19.     for($jaar = 1; $jaar <= 10; $jaar++) {
  20.         $totaalBedrag = ($jaar * $maanden) * $bedragMaand;
  21.         $rente = ($bedragMaand / 100 * 4) * $jaar;
  22.  
  23.         echo "Jaar: $jaar, totaal: $totaalBedrag, ontvangen rente: $rente <br>";
  24.     }
  25. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top