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;
}