Thursday 1 September 2016

how to print traingle in php

  <?php
    for($x=1; $x<=6 ;  $x++){

for($y=1; $y <= $x ;  $y++){

echo  "*" ;
}
echo "<br>" ;
}

?>

No comments:

Post a Comment