Test case 0 fail

sir code is working properly for every input but still when i submit test case 0 error comes

Save your code on ide.codingblocks.com and then share its link.

Constraints go till 99 therefore first of all add long long int and moreover your code might be failing for edge cases like n=1 or n=2 because you are just printing the first two rows . Rectify that with help of if statements where you may separately handle the cases for n=1 or n=2.

it worked sir, thank you