sasha85
10-14-2007, 12:20 PM
imagen old and nice grandpa he got 5 sons and 4 daughters
(4+5=9)
every one of the sons got 5 sons
(5x5=25)
and every one of the daughters got 2 sons and 2 daygters
(2+2=4)
(4x4=16)
that means the granpa got 16+25=41 grandchildren...
=>on the 1(first) level he got 9people
=>on the 2(second) level he got 41people
and may be some of the children got sons or daughters too...in that case he will got a 3(third) level too...
in my asp files, there are no replay of names=every body got his original name wich no one esle have.
i enter to the database :
"first name" "fathers name"
i need to build some circulation function that counts how much levels granpa have and how much people he got on every level.
someone wrote/saw something like this before?
any help will help right now:)
:D
(4+5=9)
every one of the sons got 5 sons
(5x5=25)
and every one of the daughters got 2 sons and 2 daygters
(2+2=4)
(4x4=16)
that means the granpa got 16+25=41 grandchildren...
=>on the 1(first) level he got 9people
=>on the 2(second) level he got 41people
and may be some of the children got sons or daughters too...in that case he will got a 3(third) level too...
in my asp files, there are no replay of names=every body got his original name wich no one esle have.
i enter to the database :
"first name" "fathers name"
i need to build some circulation function that counts how much levels granpa have and how much people he got on every level.
someone wrote/saw something like this before?
any help will help right now:)
:D