Need a bit of help..

Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Aug 2009
Posts: 1
Reputation: radium is an unknown quantity at this point 
Solved Threads: 0
radium radium is offline Offline
Newbie Poster

Need a bit of help..

 
0
  #1
Aug 31st, 2009
I need the following output using nested for loops only.. Can someone please help me?

Thanks a lot..
Attached Thumbnails
untitled.JPG  
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,721
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 501
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven

Re: Need a bit of help..

 
0
  #2
Aug 31st, 2009
Welcome radium,
Show us your work. Please.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 360
Reputation: jencas is just really nice jencas is just really nice jencas is just really nice jencas is just really nice jencas is just really nice 
Solved Threads: 69
jencas jencas is offline Offline
Posting Whiz

Re: Need a bit of help..

 
0
  #3
Aug 31st, 2009
maybeb you should start with something like:

  1. std::string createString(int i)
  2. {
  3. // create the string of "level i"
  4. }
  5.  
  6. for (int i = 1; i <= 5; ++i)
  7. {
  8. cout << createString(i);
  9. }
If you are forced to reinvent the wheel at least try to invent a better one!

Please use code tags - Please mark solved threads as solved
Reply With Quote Quick reply to this message  
Reply

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



Similar Threads
Other Threads in the C++ Forum


Views: 175 | Replies: 2
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC