STAR LOGIC Programming PHP
INPUT
<?php
for($i=4;$i>=1;$i--){
for($j=1;$j<=$i;$j++){
echo " \t";
}
for($k=4;$k>=$i;$k--){
echo "*";
echo " \t";
}
echo "<br/>";
}
for($l=1;$l<=4;$l++){
for($m=1;$m<=$l;$m++){
echo " \t";
}
for($n=4;$n>=$l;$n--){
echo "*";
echo " \t";
}
echo "<br/>";
}
?>
OUTPUT
*
* *
* * *
* * * *
* * * *
* * *
* *
*