30
\$\begingroup\$

The Challenge

Your task is to create a program or function that outputs the following with no input:

a
bb
ccc
dddd
eeeee
ffffff
ggggggg
hhhhhhhh
iiiiiiiii
jjjjjjjjjj
kkkkkkkkkkk
llllllllllll
mmmmmmmmmmmmm
nnnnnnnnnnnnnn
ooooooooooooooo
pppppppppppppppp
qqqqqqqqqqqqqqqqq
rrrrrrrrrrrrrrrrrr
sssssssssssssssssss
tttttttttttttttttttt
uuuuuuuuuuuuuuuuuuuuu
vvvvvvvvvvvvvvvvvvvvvv
wwwwwwwwwwwwwwwwwwwwwww
xxxxxxxxxxxxxxxxxxxxxxxx
yyyyyyyyyyyyyyyyyyyyyyyyy
zzzzzzzzzzzzzzzzzzzzzzzzzz

Scoring

This is , so the shortest answer in each language wins.

\$\endgroup\$
  • 4
    \$\begingroup\$ Output as list of lines? \$\endgroup\$ – totallyhuman Nov 8 '17 at 22:19
  • 5
    \$\begingroup\$ Can we use the uppercase alphabet instead? \$\endgroup\$ – Uriel Nov 8 '17 at 22:20
  • 9
    \$\begingroup\$ I was missing alphabet challenges! (but don't let Leaky Nun know) \$\endgroup\$ – Luis Mendo Nov 8 '17 at 22:32
  • 9
    \$\begingroup\$ I worked very hard checking if it was a dupe and apparently it isn't \$\endgroup\$ – Blue Nov 8 '17 at 22:35
  • 4
    \$\begingroup\$ @totallyhuman that's up to you. \$\endgroup\$ – SpookyGengar Nov 8 '17 at 23:31

93 Answers 93

0
\$\begingroup\$

Scala (39 bytes)

('a'to'z')map(n=>println(s"$n"*(n-96)))

Try it online

\$\endgroup\$
0
\$\begingroup\$

Dart, 81 bytes

List.generate(26,(i)=>''.padRight(i+1,String.fromCharCode(i+97))).forEach(print);

Try it online!

\$\endgroup\$
0
\$\begingroup\$

Ahead, 28 bytes

Featuring trailing newline!

'a'zEr~@~kdW<
~:\N\0<~'a-k:l

Try it online!

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.