public static void main(String [] args){
		 System.out.println("Enter value of n:");
		    Scanner scan=new Scanner(System.in);
		    int n=scan.nextInt();
		 for(int i=1;i<=n;i++){
			
		for(int j=1;j<=n+(i-1);j++)
			 System.out.print(" ");
			 for(int k=n;k>=i;k--){
				 
				  System.out.print(" "+ k);
			 }
			 System.out.println(" ");
			 }
		 }