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
Pattern Numbers and Stars 1
But I still did not understand that why is this program https://ide.codingblocks.com/s/317114 failing a test case.
Got it! Thank you🙏 .