Https://ide.codingblocks.com/s/49559

Take as input N, a number. Print the pattern as given in output section for corresponding input.
1 2 3 4 5
1 2 3 4 *
1 2 3 * * *
1 2 * * * * *
1 * * * * * * *

The code is givimg correct output on ide but it’s not passing the test cases of the challenge given above.

Hi Anushka, please share the link of the question as well.

https://ide.codingblocks.com/s/49560

Please share the link of the question, not the code.

the link isn’t available but i’ve shared the exact question

It’s difficult to tell the exact error without looking at the actual question, but you can try changing the format as per the question requirements like adding space or tab - whatever is specified in the question.

Hey Anushka, observe the pattern carefully there is a space between each character. So, to get the correct output modify your code’s line: 13 as cout<<j<<" "; and line:23 ascout<<"* ";