<?php $n; for($i=1;$i<=$n;$i++){ for($j=1;$j<=$i;$j++){ echo "*"; } echo "\n"; }
$n=5;
PHP Notice: Undefined variable: n in /home/UOBnxA/prog.php on line 3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!