Swastik pattern is obtained for n=13 as per question. however for other values of n, it is distorted.
Https://ide.codingblocks.com/s/46534
Hey Anushka, the pattern your are printing for n=13 is not the required pattern this pattern is for n=7. So, try to write the generalize code by observing the relation between no. of rows, columns, spaces and stars this pattern is having for n=7.