Fixed the ordering

This commit is contained in:
Anton Dolozin 2025-11-09 16:51:23 +01:00
parent 0cc2266abf
commit 1447ed6968

View File

@ -101,7 +101,7 @@ int main(void){
answer[strcspn(answer, "\n")] = '\0';
if(strcmp(answer, "n") == 0){
tree = tree->left;
tree = tree->right;
if(tree->value[0] == '*'){
printf("\n%s\n", tree->value);
printf("Koniec\n");
@ -112,7 +112,7 @@ int main(void){
}
else if(strcmp(answer, "a") == 0){
tree = tree->right;
tree = tree->left;
if(tree->value[0] == '*'){
printf("\n%s\n", tree->value);
printf("Koniec\n");