Arithmetic Operations

  • + 0 comments

    read -p "Enter expression: " expr result=expr" | bc -l) printf "%.3f\n" "$result"