Calculator halp

Everything with my algorithm works except with multiple operators like “5*+8”. I’m splitting my input array into arrays of numbers and operators currently, and I’m not sure if there’s a way to handle multiple operators without reworking my logic from the ground up.

Any hints would be greatly appreciated :slightly_smiling_face:

Thank you for the guidance. I’m confident I can rework the code and pass now. I kept thinking I would have to rework my calculation algorithm. I also see now a couple spots where I can eliminate repeated code too.:slightly_smiling_face: