fork download
  1. <?php
  2. $n=1;
  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 ypur value should be greater than 1";
  12. }
Success #stdin #stdout 0.03s 25796KB
stdin
Standard input is empty
stdout
    your no should be odd and ypur value should be greater than 1