ad

Tuesday, May 28, 2024

PHP Program to print Alphabet Pattern 0

 PHP Program to print Alphabet Pattern 0

PHP Program to print Alphabet Pattern 0



Example :-

<?php
echo "<pre>";
for($row=0;$row<11;$row++){
    for($col=0;$col<=11;$col++)
    {
        if (($col ==1 AND $row !=0 AND
$row!=10)OR
(($row==0 or $row==10 )AND $col>1
         AND $col<9)OR ($row==15 AND $col>2
AND $col<10)Or
($col==10 AND $row!=0 AND $row !=20
AND $row!=0 AND $row !=10 AND $row !=10))
       
        {
            echo"o";
        }
        else {
            echo "&nbsp;";
        }
        }
        echo "<br>";
    }
    echo "</pre>";
?>

 PHP Program to print Alphabet Pattern 0

Output :-

PHP Program to print Alphabet Pattern 0


Related Post ::- 

change password form

armstrong number program in php

free feedback form html & css code

PHP Program to print Alphabet Pattern G

  PHP Program to print Alphabet Pattern G

PHP Program to print Alphabet Pattern G

Example :-

<?php
echo "<pre>";
for($row=0;$row<11;$row++){
    for($col=0;$col<=11;$col++)
    {
        if (($col ==1 AND $row !=0 AND
$row!=10)OR (($row==0 or $row==10 )AND $col>1
         AND $col<9)OR ($row==5 AND $col>2
AND $col<10)Or($col==9 AND $row!=0 AND $row
!=2 AND $row!=3 AND $row !=4 AND $row !=10))
       
        {
            echo"G";
        }
        else {
            echo "&nbsp;";
        }
        }
        echo "<br>";
    }
    echo "</pre>";
?>

PHP Program to print Alphabet Pattern G

Output :-

PHP Program to print Alphabet Pattern G

Related  Post :-

php if else statements

php program to print alphabet pattern U

php program print square number pattern

javascript email validation

PHP Program to print Alphabet Pattern B

 PHP Program to print Alphabet Pattern B

PHP Program to print Alphabet Pattern B


Example :-

<?php
echo "<pre>";
for($row=0;$row<11;$row++){
    for($col=0;$col<=11;$col++)
    {
        if ($col ==1 OR (($row==0 or $row==5
or $row==10)AND $col>1
         AND $col<9)OR ($col==9 AND $row !=0
AND $row<11) )
       
        {
            echo"B";
        }
        else {
            echo "&nbsp;";
        }
        }
        echo "<br>";
    }
    echo "</pre>";
?>
PHP Program to print Alphabet Pattern B

Output:-

PHP Program to print Alphabet Pattern B

Related Post :-

PHP Program to print Alphabet Pattern H

 PHP Program to print Alphabet Pattern H

PHP Program to print Alphabet Pattern H


Example :-

<?php
echo "<pre>";
for($row=0;$row<11;$row++){
    for($col=0;$col<=11;$col++)
    {
        if($col ==1 OR (($row==5 )AND $col>1
        AND $col<15)OR($col==11 AND $row!=5
AND $row<14)
        OR($col==$row-14 AND $row >8))
        {
            echo"H"; //only change the echo
            //value "*" than display tha *
structure.  
        }
        else {
            echo "&nbsp;";
        }
        }
        echo "<br>";
    }
    echo "</pre>";
?>

 PHP Program to print Alphabet Pattern H

Output :-


Related Post :-

php program to print triangle pattern

php program to print alphabet pattern N

php program check to even or odd number

how to create contact form html and css

PHP Program to print Alphabet Pattern F

 

PHP Program to print Alphabet Pattern F

PHP Program to print Alphabet Pattern F


Example :-

<?php
echo "<pre>";
for($row=0;$row<11;$row++){
    for($col=0;$col<=11;$col++)
    {
        if($col ==1 OR (($row==0 or $row==4)
AND $col>1
        AND $col<15)OR($col==9 AND $row!=1
AND $row<1)
        OR($col==$row-10 AND $row >15))
        {
            echo"*";
        }
        else {
            echo "&nbsp;";
        }
        }
        echo "<br>";
    }
    echo "</pre>";
?>


PHP Program to print Alphabet Pattern F

Output :-

PHP Program to print Alphabet Pattern F

Related Post :-

css introduction

php arithmetic operators

php program to print hollow triangle star pattern