Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int deep = 1;
- public void printarPaiFilhos(pai, deep)
- {
- print (deep * "-") + pai.nome
- if (!pai.listaFilhos.IsEmpty())
- {
- foreach filho em listaFilhos
- {
- printarPaiFilhos(filho, deep+1);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement