PHP Program to print Alphabet Pattern L
PHP Program to print Alphabet Pattern L
Example:-
<?phpecho "<pre>";for($row=0;$row<11;$row++){ for($col=0;$col<=11;$col++) { if($col ==0 OR (( $row==10)AND $col>0 AND $col<15)OR($col==0 AND $row!=1 AND $row<1) OR($col==$row-10 AND $row >15)) { echo"L"; //or echo "*" inclue value than //print to tha * value // put the echo "L" value than print/display to the //L value } else { echo " "; } } echo "<br>"; } echo "</pre>";?>
PHP Program to print Alphabet Pattern L
<?php
echo "<pre>";
for($row=0;$row<11;$row++){
for($col=0;$col<=11;$col++)
{
if($col ==0 OR (( $row==10)AND $col>0
AND $col<15)OR($col==0 AND $row!=1 AND
$row<1)
OR($col==$row-10 AND $row >15))
{
echo"L"; //or echo "*" inclue
value than
//print to tha * value
// put the echo "L" value
than print/display to the
//L value
}
else {
echo " ";
}
}
echo "<br>";
}
echo "</pre>";
?>
Thanks for this guide.
ReplyDelete