I want to print this pattern with PHP using for loops:
I want to print this pattern with PHP using for loops:
1.png
I have this :
<?php
for($i=0;$i<=8;$i++){
for($j=8-$i;$j>=1;$j–){
echo $j;
}
echo “<div style=’text-align:right’>”;
}
?>
and it’s printing number’s upside down
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"
