So I was trying to figure out how to detect the number of operands and operations in a mathematical expression
Ex: 1+2*9/2
I was trying to separate the operands and the operations into their own form using functions because we have to check how many operations must be done and in the correct order (PEDMAS) as well.
I've taken the equation and taken out all the spaces already, now i have to find the number of operands and operations in the equation and then later use return to find the answer of the given mathematical expression by the user.
Any tips?