int main(){
char i,input[30],close,open;
for(i=0;i<='.';i++){
printf("enter equation");
scanf("%c",input[i]);
if(input[i]=='(')
input++;
input[i]=open;
else if(input[i]==')')
input[i]--;
input[i]=close;
else if(open[i]==close[i])
{
printf("paranthesis are balance");
}
else
printf("paranthesis are not balance");
}

getch();
return 0;

}
jephthah commented: ugh, i'm tired of seeing your non-stop threads. -1

Please format your code. Whatever problem you are having can probably be attributed to the fact you can't see what you're doing.

See this

i show what i did and need the solution thanks

And I said format your code. I see what you did and can't read it. Therefore I can't help solve anything.

i swear, this guy.

i should probably be more tolerant, but his umpteen threads repeating the same problem, with the same variation on URGENT PLS HELP NOW headlines, along with his imperiously demanding tone.

it's just making it really difficult to care.

.

commented: Indeed +20