CRX-Pateern 3 , I have written the code but there is no error and expected output is not come.Please Resolve this

package Test;
import java.util.Scanner;

public class PATTERN {

public static void main(String[] args)
{
	
			Scanner Scn = new Scanner(System.in);
			int n = Scn.nextInt();
     		int nst=n; // Numb of Star
			
			//rows
			int row=1;
			while(row<= n) 
			{
				int cst=1; // Count of Star
				while(cst<=nst);
				{
					System.out.print("*");
					cst++;
				}
				
				System.out.println("\n");
				nst=nst-1;
				row=row+1;
				
			}
			
		}
}

Hi @Ananttam-Singh-2081786612081816,
you have put ; after the inside while loop that is why your code is not giving any output.

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.