User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 423,403 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,568 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 2289 | Replies: 3
Closed Thread
Join Date: Aug 2004
Posts: 7
Reputation: kalinga is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
kalinga kalinga is offline Offline
Newbie Poster

Help c++ nesting loops

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

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

thank you.....
AddThis Social Bookmark Button
 
Join Date: Jun 2004
Location: Marin, CA, USA
Posts: 434
Reputation: Chainsaw is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 9
Chainsaw's Avatar
Chainsaw Chainsaw is offline Offline
Unprevaricator

Re: c++ nesting loops

  #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?
 
Join Date: Aug 2004
Posts: 2
Reputation: mph is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
mph mph is offline Offline
Newbie Poster

Re: c++ nesting loops

  #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.
 
Join Date: Jul 2004
Posts: 16
Reputation: rishiraj_bayerd is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
rishiraj_bayerd rishiraj_bayerd is offline Offline
Newbie Poster

Re: c++ nesting loops

  #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 11:23 am.
 
Closed Thread

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C++ Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 1:18 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC