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

Comments

Popular posts from this blog

how to add background image in html.

HTML pre tag

How to insert image in html

Html anchor tag

Inline css in html