about | help | code help+videos | done | prefs |
Calculate the result based on the given expression. The instruction contains numbers followed by operators e.g. "1+2-4*2+1/2*2". Operators are + - * /. You need to parse the operations from left to right (rather than following standard order of operators in which some operators have priority over others). calculate("9") → 9 calculate("1+2") → 3 calculate("2*2+3") → 7 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 250 Post-solution available
Copyright Nick Parlante 2017 - privacy