Saturday, June 1, 2024

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 :-

No comments:

Post a Comment