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 " ";
}
}
echo"</br>";
}
echo "</pre>";
?>
Post a Comment