Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Right triangle start pattern of star

<?php
for($i=0;$i<=6;$i++){
for($k=6;$k>=$i;$k--){
}
for($j=1;$j<=$i;$j++){
echo "*&nbsp;";
}
echo "<br>";
}
for($i=5;$i>=1;$i--){
for($k=6;$k>=$i;$k--){
}
for($j=1;$j<=$i;$j++){
echo "*&nbsp;";
}
echo "<br>";
}
?>
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Right #triangle #start #pattern #star
ADD COMMENT
Topic
Name
5+7 =