please help me i am attaching my code below i want it to print for any odd n values…
thanks in advance
please help me i am attaching my code below i want it to print for any odd n values…
thanks in advance
Hey @Diwyanshu,
Are you sure that 1 test case is passing?
There are 2 problems in your code:
Each element of the pattern should be separated by a space.
The logic for inner space of lower half is not working for all values of n.
You can try to run your code 5 and 9.
I have modified your code:
Hope, this would help.
Give a like if you are satisfied.