Online Compiler and IDE

int main(){
int a=0,b=0,c=0,d=0,i;
char s[100];
scanf("%s",s);
for(i=0;i<strlen(s);i++)
{
if(s[i]=='{')
a++;
if(s[i]=='}')
a--;
if(s[i]=='[')
b++;
if(s[i]==']')
b--;
if(s[i]=='(')
c++;
if(s[i]==')')
c--;
if(s[i]=='<')
d++;
if(s[i]=='>')
d--;
if(s[i]== '*' && s[i-1]=='@'){
while(s[i]== '@' && s[i-1]=='*')
i++;
i = i-1;
}
}
if(a==0 && b==0 &&c==0 &&d==0)
printf("True");
else
printf("False");
}
                                                                                                                                             
                                                                                                                                               
                                                                                                                                               

Generated URL:

Output:

No Output