$n=<>;printf"a%*s\n",$n,$s.=chr$_+96for 1..$n
5
a a a ab a abc a abcd aabcde
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!