ABAbhik Bhattacharyainabhikb.hashnode.dev·Jan 15, 2024 · 8 min readCoding Pyramid Patterns is easier than you thinkBasics Learning how to print a row & a column is very important for any pattern program. 1.Printing a row Printing a new line so that every row is printed in a new line for(int row=1;row<=n;row++){ printf("\n"); } 2.Reverse printing a row Prin...00
ABAbhik Bhattacharyainabhikb.hashnode.dev·Jan 10, 2024 · 5 min readCoding a Pascal's Triangle Best Explanation1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 That's how a pascal triangle looks like... Understanding the row structure Rows start from 1 , so row 1 is 1 , row 2 is 11 , row 3 is 121 & so on.... At first glance it looks like first row is 1, then ev...00