Ganesha pattern hackers block

i am not able to code forthe downward swastika.

Hello,
I am not allowed to send you the code.

But, i can help you to correct your code.
Try to write a code on Coding Blocks IDE and then share it’s link with me.

Hint: Divide the entire patterns into multiple parts and print those parts individually.
Go for Nested looping.

If you still face problem, let me know.

https://ide.codingblocks.com/s/100225 - this is the url of the code

Have you copied this code from somewhere ?
The input format of your program is not matching with that of the question.

You are taking two inputs, while you are required to take only one input i.e. n (rows=columns).

BTW, i have corrected your code.
Now, it is passing all the testcases.
Check it here: https://ide.codingblocks.com/s/100278

if you are satisfied, give a like.:wink:

thank you so much for your help.

You can give a like, i won’t mind.:joy:

2 Likes