Please check out This
Output required
Aa
Cc Bb
Dd Ee Ff
jj Ii Hh Gg
#include<stdio.h>
#include<conio.h>
void main()
{
char a = 'a',a1 ='a',A = 'A',A1='A';
int i,j,n;
clrscr();
for(i =1;i<=4;i++,printf("\n"))
{
if(i%2!=0)
for(j = 1;j<=i;j++)
{
printf("%c%c ",a,A);
a++;
A++;
}
else
{
a1 = a-1;
A1 = A-1;
for(n = i;n>=1;n--)
{
printf("%c%c ",a1+n,A1+n);
a++;
A1++;
}
}
}
}
Its comming partial right. That is small letters follow the pattern but big ones aren't.