Pascal's Triangle

Medium

📝 Description

Print Pascal's Triangle with n rows

Input Format

A single integer n

Output Format

Pascal's Triangle

Constraints

1 ≤ n ≤ 10

🔍 Sample Input

4
            

✅ Sample Output

1
1 1
1 2 1
1 3 3 1
            

Code Editor

Please login to run and submit code.

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