How To Make A Triangle With The Stars Use The PHP Language

I will explain and will run a program for compiling asterisk (*) in order to become the segita.

How does hard-what is when you can type properly as I type below.

I started it, here's how :

<?php
for ($a=0; $a<=6; $a++)//the value a = 0 and a value smaller than 6, if its true then scrip is executed next scrip.
{
for ($b=6; $b>=$a; $b--)//the value of b = 6 and the value of b is greater than a value of the same, if its true then the scrip will be shown next scrip and scrip spacing will continue looping until the condition value of b greater equals an a, after that the program will run the scrip.
{
echo "&nbsp;&nbsp;";//space
}
for ($c=1; $c<=$a; $c++)//the star is shown until the condition is not met and a follow-up program will execute the scrip change lines.
{
echo "*";//to display the * in the display which will be run.
}
echo "</br>";//its functions to the new line.
}
?>

the appearance will be as below :

How To Make A Triangle With The Stars Use The PHP Language
Congratulations again for your work needs (y).

Thank you.

How To Make A Triangle With The Stars Use The PHP Language Rating: 4.5 Diposkan Oleh: Ambil Hikmah

0 komentar:

Post a Comment