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;
}
Muhammadlodhi
-10
Light Poster
jephthah
commented:
ugh, i'm tired of seeing your non-stop threads.
-1
Recommended Answers
Jump to Posti 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.
.
All 4 Replies
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Muhammadlodhi
-10
Light Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
jephthah
1,888
Posting Maven
Salem
commented:
Indeed
+20
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.