Can't find mistake in the code

Could you please let me know the problem in my code as it is not passing any test case.
#include
using namespace std;

int main() {

int n;
cin >> n;

for (int i = 1; i <= n; i++) {

	int value = 0;
	for (int j = 1; j <= i; j++) {
		cout << j ;
	}

	for (int star = 1; star <= n - i; star++) {
		cout << "*" ;
	}

	cout << endl;
}
return 0;

}

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

I have shared the code. Still i m not getting any response from your side.

Your code seems correct.I think there is some issue with the test cases.


Submit it now and check.

yep! its fine now. And i wanted to clarify one more thing, if we open the editorial/test cases after getting 100/100 score. Will it effect in our score? or we can open the editorial after successfull submition?

You can open it.Score once given will not be deducted.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.