here is link to my code
https://ide.codingblocks.com/s/67980
Correct answer showing on other ides but wrong answer on coding blocks ide
@Dhruv-Miglani-2090236747707980 hey dhruv the first loop goes till i=0 to n
and second loop goes j=0 to j=n-1
and there is endl instead of " "
I have corrected your code you can refer this.
Hey Dhruv,
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.
Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.