HackerRank - Arithmetic Operations

April - 25/2025

Problem:

A mathematical expression containing +,-,*,^, / and parenthesis will be provided. Read in the expression, then evaluate it. Display the result rounded to 3 decimal places.

# Input

# Output

# Solution

            
    read expression
    printf "%.3f" $(echo $expression | bc -l)
    

Post: