fork(3) download
  1. e[9],c=97,i;main(n){for(scanf("%d",&n),i=n;n--;printf("a%*s\n",i,e))strcat(e,&c),c++;}
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