└── README.md /README.md: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | public class SandglassPattern 3 | { 4 | public static void main(String[] args) 5 | { 6 | int i, j, k, n; 7 | Scanner sc = new Scanner(System.in); 8 | System.out.print("Enter the number of rows you want to print: "); 9 | n = sc.nextInt(); 10 | for (i= 0; i<= n-1 ; i++) 11 | { 12 | for (j=0; j= 0; i--) 23 | { 24 | for (j=0; j