Ad

php program to print alphabet pattern N

php program to print alphabet pattern N

php program to print alphabet pattern N

php program to print alphabet pattern N

Example :-

<?php
echo "<pre>";
$j=22;
for ( $row =0; $row <=10; $row++){
    for($col=0;$col<=21; $col++){
        if($col==$j){
            echo "*";
            $j= $j+1;
            }
            if($col==0 OR $col==12 OR $row
==$col-0)
              {  echo"*";
            }
            else {
                echo "&nbsp;";
        }
    }
   
    echo"</br>";
}
echo "</pre>";
?>


php program to print alphabet pattern N

Output :-

php program to print alphabet pattern N


Related  Post :-

php program to print hollo triangle star pattern

program to print inverted pyramid star pattern in php

php program to print alphabet pattern C

No comments

Powered by Blogger.