how to print this pattern.....in java

1
23
456
7891
23456

Look at the pattern of what goes on each line. How many numbers go on the first line?
How many on the second? etc

Use some loops: one for each line and one for the contents of a line

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.