fork download
  1. s=' '*input()
  2. c=97
  3. for i in s:s=s[1:]+chr(c);c+=1;print'a'+s
Success #stdin #stdout 0.01s 7900KB
stdin
7
stdout
a      a
a     ab
a    abc
a   abcd
a  abcde
a abcdef
aabcdefg