Fixed the ordering
This commit is contained in:
parent
0cc2266abf
commit
1447ed6968
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user