Analyze the program

if(r<=n/2){
nst–;
nsp=+2;
}
else{
nst++;
nsp=-2;
}
//when r=4 then a/c tp program * will be printed

What’s your doubt ??