ad

Tuesday, May 28, 2024

PHP Program to print Alphabet Pattern P

 PHP Program to print Alphabet Pattern P

PHP Program to print Alphabet Pattern P


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

PHP Program to print Alphabet Pattern P

Output :-

php program to print Alphabet Pattern P


Related  Post:-

audio tag in html

html paragraph tag

css background propertie

PHP Program to print Alphabet Pattern A

 PHP Program to print Alphabet Pattern A

PHP Program to print Alphabet Pattern A


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

PHP Program to print Alphabet Pattern A

Output :-


PHP Program to print Alphabet Pattern A



Monday, May 27, 2024

PHP Program to print Alphabet Pattern R

 

PHP Program to print Alphabet Pattern R 

PHP Program to print Alphabet Pattern R


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)
AND $col>1
        AND $col<9)OR($col==9 AND $row!=0 AND
$row<5)
        OR($col==$row-2 AND $row >4))
        {
            echo"*";
        }
        else {
            echo "&nbsp;";
        }
        }
        echo "<br>";
    }
    echo "</pre>";
?>
PHP Program to print Alphabet Pattern R

Output :-

PHP Program to print Alphabet Pattern R


Related  Post:-

forgot password form

how to create a footer page design

php program print square number pattern

PHP Program to print Alphabet Pattern Q

 PHP Program to print Alphabet Pattern Q

PHP Program to print Alphabet Pattern Q


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

 PHP Program to print Alphabet Pattern Q

Output :-

php program to Q pattern


Related Post 

features of javascript

php program to print half diamond pattern

how to create login form in php

Sunday, May 26, 2024

PHP Program to print Alphabet Pattern K

  PHP Program to print Alphabet Pattern K

PHP Program to print Alphabet Pattern K

 Q.  What is Alphabet Pattern?

     1]  Alphabet Patterns   is a series of letters arranged in a specific order or shape. 

     2] There are many type of paper patterns  (such as  triangles, squares , circles formed                             ,B,C,d   arranging letters..etc).

     3]   They can also be used creatively in typography.
   

PHP Program to print alphabet Pattern K

Program

<?php
echo "<pre>";
$j=7;
$i =0;
 for($row =0; $row<=10; $row++)
 {
    for($col=0;$col<=10;$col++)
    {
        if($col==1 or (($row == $col +3)
        AND $col !=0))
    {
        echo "k";
    }
    else if($row == $i AND $col == $j)
    {
        echo "k";
        $i = $i+1;
        $j = $j-1;
    }
    else{
        echo "&nbsp;";
    }
    }
    echo "<BR>";

    }
    echo "</pre>";
    ?>
Output


RELATED POSTS:-

html course

how to create feedback form

contack us page design template