sacanner part of my program is not running in my eclipse id
package Pattern;
import java.util.Scanner;
public class Pattern17 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int lnst=3;
int nsp=1;
int rnst=3;
int r=1;
while(r<=n) {
int lcst=1;
while(lcst<=lnst) {
System.out.println("*");
lcst++;
}
int csp=1;
while(csp<=nsp) {
System.out.println(' ');
csp++;
}
int rcst=1;
while(rcst<=rnst) {
System.out.println("*");
rcst++;
}
System.out.println("\n");
if(r<=(n/2)+1) {
lnst--;
nsp=+2;
rnst--;
}
else {
lnst++;
nsp=-2;
rnst++;
}
r=r+1;
}
}
}
when i run the program it comes that ur program is already runing & i cant see output