diff --git a/cv8/program.c b/cv8/program.c index 8a25fe7..58bbf43 100644 --- a/cv8/program.c +++ b/cv8/program.c @@ -101,12 +101,14 @@ int count_l(struct tree* node){ int main(){ - printf("Expert z bufetu to vie\n"); - printf("Pozna 2 druhov ovocia a zeleniny\n"); - printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n"); struct tree* tree = NULL; - tree = read_tree(); + int count = count_l(tree); + + printf("Expert z bufetu to vie\n"); + printf("Pozna %d druhov ovocia a zeleniny\n", count); + printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n"); + //print_tree(tree, 3); //display(tree); destroy_tree(tree);