My output is coming inverted as of answer of the question . I am not able to understand this and print the correct output

@architsuryavanshi just print stars 2*(n-i)-1 times after printing j


here corrected code
dont forget to hit like and mark the doubt resolved @architsuryavanshi :smiley: