PHP Program to print Alphabet Pattern J
PHP Program to print Alphabet Pattern J
Example :-
<?phpecho "<pre>";for($row=0;$row<11;$row++){ for($col=0;$col<=11;$col++) { if($col ==-1 OR (($row==10 )AND $col>0 AND $col<15)OR($col==11 ) OR($col==$row-14 )) { echo"J"; //only change the echo //value "*" than display tha * structure. } else { echo " "; } } echo "<br>"; } echo "</pre>";?>PHP Program to print Alphabet Pattern J
<?php
echo "<pre>";
for($row=0;$row<11;$row++){
for($col=0;$col<=11;$col++)
{
if($col ==-1 OR (($row==10 )AND $col>0
AND $col<15)OR($col==11 )
OR($col==$row-14 ))
{
echo"J"; //only change the echo
//value "*" than display tha * structure.
}
else {
echo " ";
}
}
echo "<br>";
}
echo "</pre>";
?>
Post a Comment