fork download
  1. //char s[9];main(n,i){for(i=-scanf("%d",&n);++i<n;printf("a%*s\n",n,s))s[i]=97+i;}
  2. char s[9],i;main(n){for(scanf("%d",&n);i<n;printf("a%*s\n",n,s))s[i++]=96+i;}
Success #stdin #stdout 0s 2252KB
stdin
26
stdout
a                         a
a                        ab
a                       abc
a                      abcd
a                     abcde
a                    abcdef
a                   abcdefg
a                  abcdefgh
a                 abcdefghi
a                abcdefghij
a               abcdefghijk
a              abcdefghijkl
a             abcdefghijklm
a            abcdefghijklmn
a           abcdefghijklmno
a          abcdefghijklmnop
a         abcdefghijklmnopq
a        abcdefghijklmnopqr
a       abcdefghijklmnopqrs
a      abcdefghijklmnopqrst
a     abcdefghijklmnopqrstu
a    abcdefghijklmnopqrstuv
a   abcdefghijklmnopqrstuvw
a  abcdefghijklmnopqrstuvwx
a abcdefghijklmnopqrstuvwxy
aabcdefghijklmnopqrstuvwxyz