Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 228 Bytes

File metadata and controls

10 lines (9 loc) · 228 Bytes

Write a Program to Print the Pascal’s Triangle in Java

Input : N = 6

Output:
_ _ _ _ _ 1
_ _ _ _ 1 _ 1
_ _ _ 1 _ 2 _ 1
_ _ 1 _ 3 _ 3 _ 1
_ 1 _ 4 _ 6 _ 4 _ 1
1 _ 5 _ 10 _ 10 _ 5 _ 1