Webbserverprogrammering 1

Show sourcecode

The following files exists in this folder. Click to view.

webbsrvprg/exercises/grunder/

ovn_gr1.php
ovn_gr2.php
ovn_gr3.php
ovn_gr4.php
ovn_gr5.php
ovn_gr6.php
ovn_gr7.php

ovn_gr5.php

24 lines ASCII Windows (CRLF)
<!DOCTYPE html>
<html>
<body>

<?php


$lista 
= array("1");

for(
$i 1$i<=9$i+=1){
 
$lista[$i] = $lista[$i-1]*2;
}
$tot 0;
for(
$i 0$i<=9$i+=1){
 
$tot += $lista[$i];
}
echo 
$tot/10;
echo 
"<pre>" print_r($listatrue) . "</pre>";

?> 

</body>
</html>