Manmohan loves pattern 2

my code is executing perfectly fine but my testcases are not passing plzz help.https://ide.codingblocks.com/s/59729

Hii Himanshu,
Your logic for this question is wrong. In this question you have to print 1 in 1st row and after it you have to print row - 1.

I have made changes to your code, you can see them on below link:
https://ide.codingblocks.com/s/59833