Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dvprog_05 [2019-09-09 09:18]
Daniel Viström
dvprog_05 [2020-05-18 20:23]
Daniel Viström
Line 1: Line 1:
-====== Genomgång - Loopar ======+====== Genomgång - Loopar ======
  
 <php> <php>
Line 23: Line 23:
  
 include 'foot.php'; include 'foot.php';
-?> 
 </code> </code>
  
Line 53: Line 52:
 <code php> <code php>
 <?php <?php
-include('head.php');+include 'head.php';
  
 $summa = 0;               // Startvärde för summan $summa = 0;               // Startvärde för summan
Line 63: Line 62:
 echo '<br>Summan av var tredje tal under 100 blir: ' . $summa . '<br>'; echo '<br>Summan av var tredje tal under 100 blir: ' . $summa . '<br>';
  
-include('foot.php'); +include 'foot.php';
-?>+
 </code> </code>
  
Line 72: Line 70:
 <code php> <code php>
 <?php <?php
-include('head.php');+include 'head.php';
  
 $summa = 0;                          // Startvärde $summa = 0;                          // Startvärde
Line 86: Line 84:
 echo 'Summan är: ' . $summa . '<br>'; echo 'Summan är: ' . $summa . '<br>';
  
-include('foot.php'); +include 'foot.php';
-?>+
 </code> </code>