<?php $n = fopen('php://stdin', "r");// $ho = fopen('php://stdout', "w"); if($n<=2 && $n%2==0){ return;} for($i=0;$i<$n+2;$i++){ for($j=1;$j<$n+2;$j++){ if( (($n+2)/2)+1 ==$j ){ echo "e"; }else{ echo " "; } }} // fclose($ho);fclose($hi);
3
PHP Notice: Undefined variable: hi in /home/LtONIo/prog.php on line 23 PHP Warning: fclose() expects parameter 1 to be resource, null given in /home/LtONIo/prog.php on line 23
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!