diff --git a/data_structures/stack/parenthesis.c b/data_structures/stack/parenthesis.c index 1095eeb4..993f2edd 100644 --- a/data_structures/stack/parenthesis.c +++ b/data_structures/stack/parenthesis.c @@ -100,12 +100,10 @@ int main(void) for (int a0 = 0; a0 < t; a0++) { char s[SIZE]; - int result; printf("\nPlease enter the expression? "); scanf("%s", s); - result = isBalanced(s); - if (result == 1) + if (isBalanced(s)) printf("\nYES\n"); else printf("\nNO\n");