Showing posts with label PHP Program to print Alphabet Pattern L. Show all posts
Showing posts with label PHP Program to print Alphabet Pattern L. Show all posts

Wednesday, May 29, 2024

PHP Program to print Alphabet Pattern L

 PHP Program to print Alphabet Pattern  L

PHP Program to print Alphabet Pattern  L


Example:-

<?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 "&nbsp;";
        }
        }
        echo "<br>";
    }
    echo "</pre>";
?>

PHP Program to print Alphabet Pattern  L

Output :-

PHP Program to print Alphabet Pattern  L




Related Post :-