View Single Post
Old 11-03-2004, 02:29 PM   #3 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,736
redhead is on a distinguished road
Some pseudo code:
Code:
valueA = 0
limit = 5
while (valueA < limit)
   valueB = 0
   while (valueB <= valueA)
      print valueB
      valueB = valueB +1
   valueA = valueA +1
   print <cr>
This takes care of the first part ie:
0
01
012
0123
01234

It's almost the same idear in the remaining part.
I'll be back tomorrow morning (atleast in my timezone) to post my solution






Edit:
I'm back, if you dont want to see the solution, then don't scroll past this line
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001

Last edited by redhead; 11-03-2004 at 11:09 PM.
redhead is offline   Reply With Quote