26
Inspired by this post. For those marking this question as a duplicate I urge you to actually read the question to see that mine is a modification of the one linked. The one linked does not ask for an input and is to just print the alphabet diagonally.
The Challenge
Given an input between 1-26 inclusively, print the alphabet diagonally, but begin printing vertically at the index of the given input.
Examples
Given the input:
16
Your program should output:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Input:
4
Output:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
x
y
z
Input:
1
Output:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Input:
26
Output:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Scoring
This is code-golf, so the shortest answer in each language wins.
Good luck!
6May we choose to use either 0- or 1-indexing? – notjagan – 2017-08-19T03:45:51.860
Is a consistent leading space acceptable? – Giuseppe – 2017-08-19T06:26:50.473
Are trailing spaces acceptable? – Dom Hastings – 2017-08-19T13:20:39.367
May we use uppercase? – Adám – 2017-08-20T22:29:46.283
May we return a list of strings? – Adám – 2017-08-21T11:15:34.797
@Giuseppe sure, no problem! – SpookyGengar – 2017-08-22T17:33:38.420
@DomHastings yes, they are! – SpookyGengar – 2017-08-22T17:34:07.387
@Adám yes to both of your questions! – SpookyGengar – 2017-08-22T17:34:24.000