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
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.