#T423. 多功能计算器

多功能计算器

Description

In math class, the teacher asked Little Tu to solve a mixed arithmetic problem. Please write a computer program to help Little Tu complete the task.


Requirements: ① Include addition, subtraction, multiplication, and division operations

② Follow the order of operations

Input Format

A mixed arithmetic expression (using +, -, *, /) ending with an equals sign.

Output Format

Output the result of the arithmetic calculation (following the order of operations) [including parentheses]

```input1 (1+2)*7= ``` ```output1 21 ``` ## Hint

No solution AC program available yet.

Source

CodesOnline