-2
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;

}
Votes + Comments
ugh, i'm tired of seeing your non-stop threads.
3
Contributors
4
Replies
6
Views
8 Years
Discussion Span
Last Post by jephthah
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

1

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

2

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.

.

Edited by jephthah: n/a

Votes + Comments
Indeed
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.