Saturday, June 1, 2024

php program to print number increasing reverse pyramid

 
php program to print number increasing reverse pyramid

Q. php program to print number increasing reverse pyramid

Example:-

<?php
for($i=0;$i<=5;$i++)
{
    for($j=5-$i;$j>=1; $j--)
    {
        echo $j;
    }
    echo "<br>";

}
?>
php program to print number increasing reverse pyramid

Output :-
php program to print number increasing reverse pyramid



Related Post 

No comments:

Post a Comment