public static void main(String[] args) {
System.out.println("enter the value");
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
int row = 1;
int nst = 1;
for (row = 1; row <= n; row++) {
for (nst = 1; nst <=row; nst++) {
System.out.print("*");
}
System.out.println();
}
}
}