print the pattern

1 1 1 1 1
1 2 2 2 1
1 2 3 2 1
1 2 3 2 1
1 2 2 2 1
1 1 1 1 1

Recommended Answers

All 3 Replies

OK, I've printed it, but it wasn't very interesting. What next?

I want code for that , can you write the code in java using conditional statements.
so help me to solve this.

There are lots of people here who will freely give their time to help you become the best Java programmer you can be. There's nobody here who is interested in doing your homework for you.

DaniWeb Member Rules include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"
http://www.daniweb.com/forums/faq.php?faq=daniweb_policies
http://www.daniweb.com/forums/announcement8-2.html

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.