This commit is contained in:
Bohdan Kapliuk 2024-11-11 14:38:06 +02:00
parent 3c5797d09b
commit 1bdd940cb4

View File

@ -51,6 +51,7 @@ void print_tree(struct tree* tree, int offset) {
return; return;
} }
char r = getchar(); char r = getchar();
getchar();
if (r == 'a') { if (r == 'a') {
print_tree(tree->left, offset + 3); print_tree(tree->left, offset + 3);
} else if (r == 'n') { } else if (r == 'n') {