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. for($j=1;$j<=$n+2;$j++){
  7. echo "*";
  8. echo "e";
  9. }
  10. echo "\n";
  11. }
  12. }
  13. }else{
  14. echo "your no should be odd and your value should be greater than 1";
  15. }
Success #stdin #stdout 0.03s 25488KB
stdin
Standard input is empty
stdout
    *e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e