php program to print number increasing pyramid

php program to print number increasing pyramid


php program to print number increasing pyramid

Example :-
<?php
$k=1;
for($i=0;$i<4; $i++)
{
    for($j=0;$j<=$i;$j++)
    {
        echo $k. "";
        $k++;
    }
    echo "<br>";
}
    ?>
   
php program to print number increasing pyramid

Output:-
php program to print number increasing pyramid



Related Post :-

Comments

Popular posts from this blog

HTML pre tag

Inline css in html

CSS text-transform Property

Html anchor tag

How to insert image in html