


Print the following pattern
Pattern for N = 4

As taught in the video, you just have to modify the code so that instead of printing numbers, it should output stars ('*').
The dots represent spaces.
N (Total no. of rows)
Output Format :
Pattern in N lines
0 <= N <= 50
3
*
***
*****
4
*
***
*****
*******