Showing posts with label php program to print Alphabet pattern y. Show all posts
Showing posts with label php program to print Alphabet pattern y. Show all posts

Sunday, June 2, 2024

php program to print Alphabet pattern y

 

php program to print Alphabet pattern y

php program to print Alphabet pattern y

Example :-

<?php

for($row=0; $row<7; $row++)
{
       for ($column=0; $column<=7; $column++)
    {
       if((($column==1 or $column==5)and $row<2)
or
       $row==$column and $column>0 and $column
<4 or($column==4
       and $row ==2 )or (($column==3)and $row>3))
        echo "*";
    else
    echo "&nbsp; ";
    }
    echo "<br>";
}
?>

php program to print Alphabet pattern y

Output :-

php program to print Alphabet pattern y


Related Post :-

 

php program to print alphabet pattern F

PHP Program to print Alphabet Pattern G

PHP Program to print Alphabet Pattern O

PHP Program to Print Alphabet Pattern H