It is necessary to bring a binary tree to the console. I would like to draw it so that the root was on the first line in the middle, his children divided the second line into 3 equal parts, and so on. In Pascal, there is a function that moves the cursor to the position (x, y). And in C # there is something like that?

    1 answer 1

    System.Console.SetCursorPosition ()