Fixed leaf count
This commit is contained in:
parent
f604754f4e
commit
5aa8f2e938
@ -93,6 +93,10 @@ int main(void){
|
||||
int numOfLeaves = count_leaves(tree);
|
||||
char answer[SIZE];
|
||||
printf("Expert z bufetu to vie.\n");
|
||||
if(!tree){
|
||||
printf("Chybna databaza\n");
|
||||
return 0;
|
||||
}
|
||||
printf("Pozna %d druhov ovocia a zeleniny.\n", numOfLeaves);
|
||||
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.");
|
||||
while(tree){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user