Pascal Triangle{Pattern 3}

I want to understand the logic of pascal triangle
I know we can store the ans and print it in form of triangle Pattern is not the issue
I want to understand the approach of pascal triangle.