package pattern;
import java.util.Scanner;
public class pattern3 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
int row=1;
while(row<=n) {
int col=n;
while(col<=row) {
System.out.print("*");
col--;
}
System.out.println();
row++;
}
}
}
what is wrong in this code