mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
simplefy
This commit is contained in:
parent
02cf095653
commit
a80d7487ae
@ -100,12 +100,10 @@ int main(void)
|
|||||||
for (int a0 = 0; a0 < t; a0++)
|
for (int a0 = 0; a0 < t; a0++)
|
||||||
{
|
{
|
||||||
char s[SIZE];
|
char s[SIZE];
|
||||||
int result;
|
|
||||||
printf("\nPlease enter the expression? ");
|
printf("\nPlease enter the expression? ");
|
||||||
scanf("%s", s);
|
scanf("%s", s);
|
||||||
result = isBalanced(s);
|
|
||||||
|
|
||||||
if (result == 1)
|
if (isBalanced(s))
|
||||||
printf("\nYES\n");
|
printf("\nYES\n");
|
||||||
else
|
else
|
||||||
printf("\nNO\n");
|
printf("\nNO\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user