package Patterns;
import java.util.Scanner;
public class Pattern_13 {
public static void main(String[] args) {
System.out.println("Enter the number of rows:");
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
for (int rows = 1; rows <= n; rows++) {
for (int col = 1; col <= rows; col++) {
System.out.print("*");
}
System.out.println("");
}
for (int p = 1; p <= n - 1; p++) {
for (int a = n - p; a >= 1; a--) {
System.out.print("*");
}
System.out.println("");
}
}
}