Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 29th, 2004, 1:50 AM   #1
kalinga1234
Programmer
 
Join Date: Oct 2004
Posts: 31
Rep Power: 0 kalinga1234 is on a distinguished road
I am having difficulty in understanding nested loops .could anybody help me with these please.(in writing code)


*
* *
* * *
* * * *


*******
******
*****
****
***
**
*

*
**
***
****
*****
kalinga1234 is offline   Reply With Quote
Old Oct 29th, 2004, 4:29 AM   #2
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
I'll put a bit of PSEUDO code for you this has already been done in another post somewhere...
FOR (int i = 0;i<6;i++)
  for (int j=0;j<i;j++)
    print(*)
  end for
end for

that should work now code it

(even if it is prittey smilar to what i have put there)
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity."

- Albert Einstein
Berto is offline   Reply With Quote
Old Oct 29th, 2004, 8:06 AM   #3
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
That's not pseudo-code... that's C++ with a few words changed.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Oct 30th, 2004, 1:56 AM   #4
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 6 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
Quote:
Originally posted by Ooble@Oct 29 2004, 12:06 PM
That's not pseudo-code... that's C++ with a few words changed.
Not to mention that its theoritcally incorrect...
__________________

tempest is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:22 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC