Update cv7/program.c

This commit is contained in:
Yurii Yakovenko 2024-11-11 21:59:46 +00:00
parent 6d8fbb2e83
commit 67de6c8629

View File

@ -4,6 +4,7 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#define SIZE 200 #define SIZE 200
struct tree struct tree
@ -72,10 +73,10 @@ int main(void)
struct tree *p=tr; struct tree *p=tr;
do do
{ {
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
printf("%s",p->value); printf("%s",p->value);
if(p->value[0]=='*') if(p->value[0]=='*')
break; break;
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
do do
{ {
t=fgetc(stdin); t=fgetc(stdin);
@ -86,12 +87,10 @@ int main(void)
}while(1); }while(1);
}while(1); }while(1);
printf("Koniec\n"); printf("Koniec\n");
return 0; return 0;
} }