English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

for example (6+9-2)*5/2, its output is 69+2-5*2/

2007-08-09 13:40:25 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

1 answers

It's easy to do this with a stack -- just match parenthesis and pust to the stack based on order of ops

2007-08-09 13:43:03 · answer #1 · answered by mdigitale 7 · 0 1

fedest.com, questions and answers