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_gr3.php

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

<?php
$num 
0;
for(
$i 1$i <= 100$i++) {
 
$num $num $i;    
}
echo 
$num ""<br>";


$num2 0;
$x 1;

while(
$x <= 100) {
 
$num2 $num2 $x;
    
$x++;
}
echo 
"$num2";


?> 

</body>
</html>