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 [2017-09-01 14:54] (current)
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 49: Line 49:
    
 <form method="post"> <form method="post">
-  Skriv nåt: <input type="number" name="antal" /><br /+  Skriv nåt: <input type="number" name="antal"><br> 
-  <input type="submit" name="submit" value="Skicka" />+  <input type="submit" name="submit" value="Skicka">
 </form> </form>
    
Line 56: Line 56:
 include('foot.php'); include('foot.php');
 ?> ?>
 +</code>