943,520 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 3833
  • C++ RSS
Aug 24th, 2004
1

c++ nesting loops

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

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

thank you.....
Similar Threads
Reputation Points: 11
Solved Threads: 0
Newbie Poster
kalinga is offline Offline
7 posts
since Aug 2004
Aug 24th, 2004
0

Re: c++ nesting loops

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?
Reputation Points: 36
Solved Threads: 11
Posting Pro in Training
Chainsaw is offline Offline
436 posts
since Jun 2004
Aug 24th, 2004
1

Re: c++ nesting loops

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.
mph
Reputation Points: 11
Solved Threads: 0
Newbie Poster
mph is offline Offline
2 posts
since Aug 2004
Aug 24th, 2004
1

Re: c++ nesting loops

content removed by alc6379. We don't do homework problems here for you-- especially not simple ones.
Last edited by alc6379; Aug 24th, 2004 at 12:23 pm.
Reputation Points: 13
Solved Threads: 0
Newbie Poster
rishiraj_bayerd is offline Offline
16 posts
since Jul 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.
Previous Thread in C++ Forum Timeline: Is c # slower than c/c++
Next Thread in C++ Forum Timeline: Linked List using pointers (C++ ADT)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC