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