Hi,
I want to write a function which takes two operators as characters and check if one has a higher, lower or equal precendece than the other. Operators are only going to be + * / -. I thought of one way: assign numbers to the operatos, number one to plus and numbers 2 to * and /. Then check if one is greater than the other. Can anyone think of some other way?