Brainfuck, 107 104 94 Bytes
>>>>++[<<<+++++++++++++>>++++[<++++++++>-]>>+++++<-]<<+>+[<]>[>>[<.>>+<-]>>.<<<+>+>[<+>-]<<<-]
How it works:
>>>>++[<<<+++++++++++++>>++++[<++++++++>-]>>+++++<-]<<+>+
Stores 26 on the second cell, 65 on the third cell, 10 on the sixth cell, and 1 on the fourth, leaving the pointer on the fourth (Saved 3 13 bytes by making 26, 10, and 97 65 at the same time).
[<]>
Moves the pointer back to the start.
Now we're ready to get started!
[ | While the first cell is non-zero (so 26 times)
>> | Move to cell 3
[ | While cell 3 is non-zero
<.>>+<- | Print cell 2, increment cell 4, and decrement cell 3
] |
>>.<< | Move to cell 5 and print it (new line), then return
<+>+> | Increment cells 2 and 3, and move to 4
[<+>-] | Add the value at 4 to 3
<<<- | Decrement cell 1
] |
The important part is that cell 3 stores the number of times to print a letter. Each time a letter is printed, the value at 3 is moved to 4 and increased by 1, so that the next number is printed one more time than the last.
Side Note:
I'm completely new to brainfuck, so I wouldn't be surprised if this could be improved. However, I was also surprised by how fun brainfuck is to write, as well as by how easy it was to write, when compared with what I had imagined.
I would definitely recommend learning brainfuck to any bored programmers out there ;)
4Output as list of lines? – totallyhuman – 2017-11-08T22:19:28.297
5Can we use the uppercase alphabet instead? – Uriel – 2017-11-08T22:20:28.843
9I was missing alphabet challenges! (but don't let Leaky Nun know) – Luis Mendo – 2017-11-08T22:32:48.157
9I worked very hard checking if it was a dupe and apparently it isn't – Blue – 2017-11-08T22:35:25.667
related, related – Jonathan Allan – 2017-11-08T23:09:00.707
3Trailing/leading newlines or spaces allowed? – Shaggy – 2017-11-08T23:14:22.210
4@totallyhuman that's up to you. – SpookyGengar – 2017-11-08T23:31:39.200
1@Uriel, I don't see why not. – SpookyGengar – 2017-11-08T23:31:53.093
@Shaggy, go for it. – SpookyGengar – 2017-11-08T23:32:28.147
3@SpookyGengar it's just not specified in the post; and people here tend to be strict about challenges specifications xD – Uriel – 2017-11-08T23:35:44.407
1
Should "create a program" read "create a program or function"? (see this meta post).
– Jonathan Allan – 2017-11-09T00:04:41.773@Uriel, I totally understand. If you look at my other posts you'll see that I am very lax with my rules lol. – SpookyGengar – 2017-11-09T00:43:09.680
@JonathanAllan - interesting. I updated the post. – SpookyGengar – 2017-11-09T00:44:26.600
related – Poke – 2017-11-10T21:39:52.427