* How to print inverse triangle in multiples alphabet *
<?php
$letters = ranges('A', 'Z');
for($a=0; $a<6; $a++){
for($b=6; $b>$a; $b--){
echo $letters[$a];
}
echo"<br>";
}
?>
AAAAAA
BBBBB
CCCC
DDD
EE
F
<?php
$letters = ranges('A', 'Z');
for($a=0; $a<6; $a++){
for($b=6; $b>$a; $b--){
echo $letters[$a];
}
echo"<br>";
}
?>
AAAAAA
BBBBB
CCCC
DDD
EE
F
No comments:
Post a Comment