could you help me????? how can i get an output like this:
2+9*32/3%2=96...it depends on the user on how much operators that he want to use. please help me of what statement that i have to use to have an output like this..... please post an example statement.........

>please post an example statement
It's not a single statement. You need to write code to parse and evaluate the expression. This kind of thing is common homework, so you're not going to get much help by begging for code. Try it yourself first, and if you hit a wall, post your code so that someone can help you get over it.

yes..do some work first and show your effort. You won't get readymade solutions here. Atleast give it a try and then ask, so that you can post your doubt clearly.

commented: No need to add a comment that was already mentioned -2

Check out postfix and polish notation (or is it reverse polish notation?), anyway, they make doing this kind of parsing, rather easy.

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.