my code works fine for n=5 but for other input it doesn’t work
Pattern 8 I can't get a good output
Hi Arvind,
During updating the value of variables the right condition will be row <= n/2 as when you observe clearly you will see that while printing a cross a single star will be printed in row no. n/2 + 1 also above the single star and below it there are equal no. of rows.
You can see the above mentioned changes in this link: https://ide.codingblocks.com/s/88044
thank you I appreciate your help
it was a silly mistake