Hi i need To print from a to zzz upto 3 letters , for example my output should be
A
B
.
.
.
Z
AA
AB
.
.
AZ
BA
BB
.
.
.
ZZ
AAA
AAB
.
.
.
.
ZZZ
I was trying hard for past 5 hours , I cant find any logic and i tried below code
<?php
for ($i=65; $i<=90; $i++) {
for ($i=65; $i<=90; $i++) {
for ($i=65; $i<=90; $i++) {
echo chr($i).chr($i).chr($i)."<br>";
}
}
}
?>