Ask your own question, for FREE!
Computer Science 10 Online
OpenStudy (appleduardo):

how can i solve 43+1-4*2 with post fix notation? ive tried a lot to solve this thing, but i cant :/ at the end i get: 43,1,4,2 +*- then =174 ..

OpenStudy (ajprincess):

when we see the priority order of the operators *>- and + while - and + have the same priority. in that case we perform the operations left to right. 43+1-4*2 according to the priority order we will first do 4*2. writing this in postfix gives us 42* next we will do 43+1. writing ths in postfix gives 431+ and finally (431+)-(42*) . writing this in postfix gives us 431+42*- and the final answer is 44-8=36. Does that help?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!