fb pixel

Alphabet

The English alphabet consists of these 26 letters: abcdefghijklmnopqrstuvwxyz.
You are asked to print the first n letters (1 ≤ n ≤ 26) in a triangle where the i-th row will have the i-th letter repeated i times.
Input
4

Output
a
bb
ccc
dddd
 
To check your solution you need to sign in
Sign in to continue