Last Updated: 9 Feb, 2017

Diamond of Stars

Moderate
Asked in company
MediaTek

Problem statement

Print the following pattern for the given number of rows.

Note: N is always odd.


Pattern for N = 5


The dots represent spaces.



Input format :
N (Total no. of rows and can only be odd)
Output format :
Pattern in N lines
Constraints :
1 <= N <= 49