Differences

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

Link to this comparison view

Next revision
Previous revision
dmprog_07_ex1 [2016-09-30 10:29]
Anders Mosshäll created
dmprog_07_ex1 [2017-09-01 14:54] (current)
Line 11: Line 11:
 echo 'Talet är: ' . $tal . ' = '; echo 'Talet är: ' . $tal . ' = ';
  
-$i=1000; //Börja med tusental+$i = 1000;                        // Börja med tusental
 while ($tal > 0){ while ($tal > 0){
   $siffra = (int)($tal / $i);     // Ger heltal i division   $siffra = (int)($tal / $i);     // Ger heltal i division
Line 25: Line 25:
   $i = $i / 10;                      $i = $i / 10;                   
 } }
- 
- 
- 
  
 include('​foot.php'​);​ include('​foot.php'​);​