c++ nesting loops

Please support our C++ advertiser: Intel Parallel Studio Home
Closed Thread

Join Date: Aug 2004
Posts: 7
Reputation: kalinga is an unknown quantity at this point 
Solved Threads: 0
kalinga kalinga is offline Offline
Newbie Poster

c++ nesting loops

 
1
  #1
Aug 24th, 2004
i need some help in understanding to write the following programs.please describe how you think of doing it..
1)
*
**
***
****
*****
******
*******

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

thank you.....
Quick reply to this message  
Join Date: Jun 2004
Posts: 436
Reputation: Chainsaw is an unknown quantity at this point 
Solved Threads: 11
Chainsaw's Avatar
Chainsaw Chainsaw is offline Offline
Unprevaricator

Re: c++ nesting loops

 
0
  #2
Aug 24th, 2004
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?
Quick reply to this message  
Join Date: Aug 2004
Posts: 2
Reputation: mph is an unknown quantity at this point 
Solved Threads: 0
mph mph is offline Offline
Newbie Poster

Re: c++ nesting loops

 
1
  #3
Aug 24th, 2004
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.
Quick reply to this message  
Join Date: Jul 2004
Posts: 16
Reputation: rishiraj_bayerd is an unknown quantity at this point 
Solved Threads: 0
rishiraj_bayerd rishiraj_bayerd is offline Offline
Newbie Poster

Re: c++ nesting loops

 
1
  #4
Aug 24th, 2004
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.
Quick reply to this message  
Closed Thread

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC