Skip to content

Latest commit

 

History

History
5 lines (4 loc) · 218 Bytes

25 - arithmetic expressions.md

File metadata and controls

5 lines (4 loc) · 218 Bytes

Write an application that can take a basic arithmetic expression and returns the value. If the expression is not valid, it produces an error.

$ java -jar arithmetic_expression "(1+4)*3 + 5 - 7 / 14"
19.5
$