Pattern Numbers and Stars 1

This is my program link for this problem, please look this and let me know why do all test cases not pass.
program link: https://ide.codingblocks.com/s/317114

hi @Iamsuraj i see that one of your submissions scored 100 points, do you still need any help?

But I still did not understand that why is this program https://ide.codingblocks.com/s/317114 failing a test case.

@Iamsuraj it is not printing anything when n = 1
the output should be

1
1 Like

Got it! Thank you🙏 .

@Iamsuraj dont forget to mark your doubt as resolved!