Update 'cv8/program.c'

This commit is contained in:
Anzhelika Nikolaieva 2023-11-24 21:59:11 +00:00
parent 94605ce0dd
commit ebf7c281cb

View File

@ -96,6 +96,11 @@ void knowledge_system(struct tree* node) {
return;
}
if (*flag == 0) {
printf("%s", node->v);
*flag = 1;
}
printf("%s", node->v);
if (node->left == NULL && node->right == NULL) {
printf("Koniec\n");