0

How we can create triangle using " *" in php ??

any one can post code here ??

8th Dec 2017, 10:43 AM
hassan
2 Answers
+ 5
<?php for($i=1;$i<6;$i++){ for($j=0;$j<$i;$j++){ echo "* "; } echo "<br>"; } ?>
8th Dec 2017, 11:27 AM
Ranjan Bagri
Ranjan Bagri - avatar
0
ranjan i need a triangle whose three sides are equal ie all sides of 60 angle
8th Dec 2017, 1:10 PM
hassan