0

Program that recognizes functions!

I need to do in my school a program that recognizes functions, for example the user will enter x^3-x^2-40, and the x value, they say that I have to separate the operators and the numbers in two stacks, but, what happens if I don't know what the user will input? What the order of the function will be?

7th Sep 2016, 1:46 AM
Marcos Julian Morales
Marcos Julian Morales - avatar
3 Answers
0
use brackets order follows the bodmas rule
7th Sep 2016, 10:45 AM
Ankur Sharma
Ankur Sharma - avatar
0
use parenthesis
18th Sep 2016, 5:47 PM
sumit
sumit - avatar