Making Arrow Using Php
Html code
The given arrow pattern is made from loop .There are many for loop used to create this type of pattern.
That is nested loop .
<!doctype html><html>
<head></head>
<body>
uk
<?php
for ( $b =1;$b<=9;$b++ )
{
for ($c=1;$c<=$b;$c++)
{
echo"$c";
}
echo"<br>";
}
for ($a=9 ;$a>=1;$a-- )
{
for ($d=1;$d<=$a;$d++)
{
echo"$d";
}
echo"<br>";
}
?>
</body>
</html>
uk
"; } for ($a=9 ;$a>=1;$a-- ) { for ($d=1;$d<=$a;$d++) { echo"$d"; } echo""; } ?>
1 comment:
gdgdf
Post a Comment