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. }
  9. echo "$n*e";
  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 25772KB
stdin
Standard input is empty
stdout
    *******************17*e