Friday, May 31, 2024

php program to print inverted right half pyramid

 

php program to print inverted right half pyramid

php program to print inverted right half pyramid

Example:-

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

php program to print inverted right half pyramid

Output:-

php program to print inverted right half pyramid


  1. Related Post:-
  2. reverse right half pyramid in php

    left pascal star pattern in php

    inverted pyramid star pattern in php

    print half diamond pattern


No comments:

Post a Comment