Pyramid Pattern

Easy

📝 Description

Print star pyramid with n levels

Input Format

A single integer n

Output Format

Pyramid pattern

Constraints

1 ≤ n ≤ 20

🔍 Sample Input

3
            

✅ Sample Output

  *  
 *** 
*****
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run