<?php $n=5; for($i=1;$i<=n;$i++){ for($j=1;$j<=$i;$j++){ echo "*"; } echo "\n"; }
Standard input is empty
PHP Warning: Use of undefined constant n - assumed 'n' (this will throw an Error in a future version of PHP) in /home/zRxyyS/prog.php on line 3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!