Skip to content

Commit a80d748

Browse files
author
Christian Bender
committed
simplefy
1 parent 02cf095 commit a80d748

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

data_structures/stack/parenthesis.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,10 @@ int main(void)
100100
for (int a0 = 0; a0 < t; a0++)
101101
{
102102
char s[SIZE];
103-
int result;
104103
printf("\nPlease enter the expression? ");
105104
scanf("%s", s);
106-
result = isBalanced(s);
107105

108-
if (result == 1)
106+
if (isBalanced(s))
109107
printf("\nYES\n");
110108
else
111109
printf("\nNO\n");

0 commit comments

Comments
 (0)