Update a1/program.c

This commit is contained in:
Yurii Yakovenko 2024-10-25 20:43:05 +00:00
parent ff87c1ef40
commit c253ae8605

View File

@ -111,18 +111,21 @@ int main()
i++;
}
if(count_stack(&mystack)>0)
if(is_ok)
{
printf("\nMissing closing brackets: ");
do
{
if(count_stack(&mystack)>0)
{
printf("\nMissing closing brackets: ");
do
{
cs=pop_stack(&mystack);
printf("%c", para(cs));
}while(count_stack(&mystack)>0);
printf("\n");
}
else if(is_ok)
}while(count_stack(&mystack)>0);
printf("\n");
}
else
printf("\nAll brackets OK\n");
}