Last Updated: 18 Apr, 2017

Star Pattern

Easy
Asked in companies
IBMAmazonUnthinkable Solutions

Problem statement

Print the following pattern

Pattern for N = 4


Hint
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.



Input Format :
N (Total no. of rows)
Output Format :
Pattern in N lines
Constraints :
0 <= N <= 50