/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby,
C#, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS
Code, Compile, Run and Debug online from anywhere in world.
AAAA
AAAB
AAAC
...
...
AAAZ
AABA
AABB
...
AABZ
*******************************************************************************/
#include <stdio.h>
int main()
{
char ch='A';
int i,j,c=0;
while(c<2)
{
for(i=0;i<26;i++)
{
for(j=0;j<4;j++)
{
if(c==0)
{
if(j!=3)
printf("%c",ch);
else
printf("%c",ch+i);
}
else
{
if(j==2)
printf("%c",ch+c);
else if(j==3)
printf("%c",ch+i);
else
printf("%c",ch);
}
}
printf("\n");
}
c++;
}
return 0;
}
if you have queries then even i will also attach the link(
[email protected])