Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
amdele_median [2016-11-07 16:01]
Anders Mosshäll created
amdele_median [2016-11-07 16:02]
Anders Mosshäll
Line 1: Line 1:
 ====== Lösningsförslag - Medianvärde ====== ====== Lösningsförslag - Medianvärde ======
 +<code php>
 <?php <?php
 include('head.php'); include('head.php');
Line 19: Line 19:
  
   //Skriv ut arrayen   //Skriv ut arrayen
-  $i=0;   // Skapa arrayen+  $i=0;
   while ($i < count($numbers)) {    while ($i < count($numbers)) { 
     echo $numbers[$i] . ' ';     echo $numbers[$i] . ' ';
Line 56: Line 56:
 include('foot.php'); include('foot.php');
 ?> ?>
 +</code>