4 4
33 33
222 222
1111 1111
000000000
1111 1111
222 222
33 33
4 4

import java.io.*;
class Welform
{
public static void main(String arg[])
{
	int n=4,k=4;
	for(int i=0;i<=2n+1;i++)
	{
		for(int j=0;j<i;j++)
		{
		System.out.println(""+k);
		}
	}
	if(i==(2k+1))
	{
		for(int j=2k+1;j<2k;j--)
		{	
		System.out.println(""+k);
		System.out.println("");
		}
	}	k--;

}
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.