These are star pattern exercises. These are used for logic building. These also help the programmer to get more flexibility over control statements. In this exercise, the difficulty level of the problem is increasing as they move to next problems.
Many good programmers recommend other programmers to solve these problems because not only it increases logic but also the provide more control over control statements.
Just click the below problems for the solutions: