<?php
echo "Avec la méthode while <br>";
$n=4;
$s=0;
$i=1;
while ($i<=$n) {
 	$s=$s+$i;
	$i++;
 }
 echo "$s";
?>