<?phpecho "Avec la méthode while <br>";$n=5;$x=2;$i=1;$p=$x;while ($i<$n) { $p=$p*$x; $i++; } echo "$p";?>
Standard input is empty
Avec la méthode while <br>32
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!