i need some help in understanding to write the following programs.please describe how you think of doing it..
1)
*
**
***
****
*****
******
*******

2)*******
******
*****
****
***
**
*

thank you.....

Recommended Answers

All 3 Replies

Looks like
draw 1 star
draw 2 stars
draw 3 stars
etc.

that sounds like a 'for' loop to me, or maybe a 'while' loop.

Can you think of a for loop that would do this?

Got any more info, K?? :)

Like, is that supposed to be the program output, or some model of the code?

If the former, it sounds like Chainsaw's on the right track.

content removed by alc6379. We don't do homework problems here for you-- especially not simple ones.

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.