Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.49 KB

README.md

File metadata and controls

34 lines (25 loc) · 1.49 KB

Pattern 18

Easy

Geek is very fond of patterns. Once, his teacher gave him a square pattern to solve. He gave Geek an integer n and asked him to build a pattern.

Help Geek to build a star pattern.

 

Example 1:

Input: 5

Output:
E 
D E
C D E
B C D E
A B C D E

 

Your Task:

You don't need to input anything. Complete the function printTriangle() which takes  an integer n  as the input parameter and print the pattern.

Constraints:

  • 1<= N <= 20