PHP Program to print Alphabet Pattern E

 PHP Program to print Alphabet Pattern  E

PHP Program to print Alphabet Pattern  E


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<15)OR($col==9 AND $row!=1 AND
$row<1)
        OR($col==$row-10 AND $row >15))
        {
            echo"E";
        }
        else {
            echo "&nbsp;";
        }
        }
        echo "<br>";v
    }
    echo "</pre>";
?>

PHP Program to print Alphabet Pattern  E

Output :-




Related Post ::-

 armstrong number program in php

php if statements

php operators

Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

HTML Input Type Submit Syntax and Example