Update 'cv8/program.c'

This commit is contained in:
Anzhelika Nikolaieva 2023-11-24 21:11:01 +00:00
parent 2fe584abca
commit a24ed29678

View File

@ -96,6 +96,12 @@ void knowledge_system(struct tree* node) {
return;
}
if (node->left == NULL && node->right == NULL) {
printf("\nJe to ovocie alebo zelenina\n");
return;
}
printf("%s", node->v);
if (node->left == NULL && node->right == NULL) {
printf("Koniec\n");