|
|
|
|
....................hello ................hello ............hello ........hello ....hello hello BYE ....middle ....BYE ........middle ........BYE ............middle ............BYE ................middle ................BYE ....................middle ....................BYE |
It starts buildWall with parameter 5 ***- which says hello and starts buildwall with parameter 4 ******- which says hello and starts buildwall with parameter 3 *********- which says hello and starts buildwall with parameter 2 ************- which says hello and starts buildwall with parameter 1 ***************- which says hello and starts buildwall with parameter 0 ***************- which says just hello and BYE and returns ************- so buildwall with parameter 1 can now say middle and BYE and return *********- so buildwall with parameter 2 can now say middle and BYE and return ******- so buildwall with parameter 3 can now say middle and BYE and return ***- so buildwall with parameter 4 can now say middle and BYE and return - so buildwall with parameter 5 can now say middle and BYE and return |
5....................hello 4................hello 3............hello 2........hello 1....hello 0hello 0BYE 1....middle 1....BYE 2........middle 2........BYE 3............middle 3............BYE 4................middle 4................BYE 5....................middle 5....................BYE |
|
|