After compiling successfully, still showing wrong answer

in the pattern no.s and stars challenge, i compiled the code many times successfully, then why it is showing wrong answer after submission?

Hey @Roopa1i_ma1hotra, your code compiled successfully means that it does not have any syntax error and is grammatically correct. But maybe the output that it is producing is not exactly what should be the right answer. Please check once that the output coming is correct.

Hope this helps.
Happy coding :slightly_smiling_face: