fork download
  1. <?php
  2. $n=17;
  3. if($n%2!==0 && $n>1){
  4. for($i=1;$i<=$n;$i++){
  5. if($i=$n){
  6. echo "e";
  7. }else{
  8. echo "";
  9. }
  10. for($j=1;$j<=$n+2;$j++){
  11. echo "*";
  12. }
  13. echo "\n";
  14. }
  15. }else{
  16. echo "your no should be odd and your value should be greater than 1";
  17. }
Success #stdin #stdout 0.02s 25932KB
stdin
Standard input is empty
stdout
    e*******************