return level of node
int level = getLevel ( root , 30 ) ; if ( level != 0 ) Console . WriteLine ( " level ▁ of ▁ node ▁ 30 ▁ is ▁ " + level ) ; else Console . WriteLine ( " node ▁ 30 ▁ not ▁ found " ) ; level = getLevel ( root , 12 ) ; if ( level != 0 ) Console . WriteLine ( " level ▁ of ▁ node ▁ 12 ▁ is ▁ " + level ) ; else Console . WriteLine ( " node ▁ 12 ▁ not ▁ found " ) ; level = getLevel ( root , 25 ) ; if ( level != 0 ) Console . WriteLine ( " level ▁ of ▁ node ▁ 25 ▁ is ▁ " + level ) ; else Console . WriteLine ( " node ▁ 25 ▁ not ▁ found " ) ; level = getLevel ( root , 27 ) ; if ( level != 0 ) Console . WriteLine ( " level ▁ of ▁ node ▁ 27 ▁ is ▁ " + level ) ; else Console . WriteLine ( " node ▁ 27 ▁ not ▁ found " ) ; } }