
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		int n=8,i,j,k,t;
    	for (i=n;i>=1;i--)
    	{  
	    	t=i;
	        for(j=1;j<i;j++)
	        System.out.printf("%3c",32);  // for leading spaces
	        System.out.printf("%3d",i);   // for first digit(or number) in each row (in your example these are 4,3,2,1)
	        for(k=n;j<n;j++,k--)
			{
				t+=k;   
				System.out.printf("%3d",t);
			}
	        System.out.print("\n");
    	}
	}
}