Module: Character strings: Parsing arithmetic expressions


Problem

4 /4


Arithmetic Expression-3

Problem

Write a program that calculates an expression consisting of three numbers, three digits of arithmetic operations (signs «+», «–», « ;*» and «/») and  parentheses. The input is a character string representing an arithmetic expression. All numbers are integers. Operation «/» performed as integer division. 
 
Examples
# Input Output
1 2*(3+45)+4 100
2 2*3/(5-2) 2