sir code is working properly for every input but still when i submit test case 0 error comes
Test case 0 fail
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