hi
i want to get following output.
1
2 2 2
3 3 3 3 3
4 4 4 4 4 4 4 and so on

in 1st row one 1
in 2nd three 2
in 3rd five 3
in 4rt seven 4
in 5th nine 5
(all odd outputs)

Is this a homework question?

Have you tried to even get started on this? Why not post some code that you've written, and then others here will help. I'm not that much of a programmer, but this doesn't look too difficult. We're not here to do things for you; we're here to help you learn.

Is this a homework question?

Have you tried to even get started on this? Why not post some code that you've written, and then others here will help. I'm not that much of a programmer, but this doesn't look too difficult. We're not here to do things for you; we're here to help you learn.

I HAVE TRIED IT.IT IS QUIT SIMPLE BUT MANAGING ROWS AND COLOUMS AND NESTED LOOPS ARE MAKING FUSS.SO,PLAESE DO TRY GETTING IN SHAPE OF EQUILATERAL TRIANGLE.THANK U :D

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.