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

Full Stack Responsive Website Project Available for Students

   front end developer Responsive Website Project Available for Students 🎓 Are you a BCA, MCA, B.Sc IT, B.Tech, BE, Engineering, Diploma, ...