I want perform this code but something is missing i don't know

taking input
int nsp = 0;
int nst = n;

for(int row = 1; row <= n ; row++){
for(int csp =1; csp <= nsp ; csp++){
System.out.print(" “);
}
for(int cst = 1; cst <= nst ; cst++){
System.out.print(”*");
}
System.out.println();
row ++;
nst–;
nsp++;
}

doubt asking timming kya hai

i want to join via live for doubt

@ramasheeshch9920_6c65b0d4074099d5 there is no specific time to ask a doubt. Just put in your doubt and I’ll try to solve it as soon as possible. You have to use scanner to scan the input values. Like I did below :

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.