HF RL Explorer

Create a command-line program /app/calc that performs arithmetic on fixed-point decimal numbers with EXACT…

Create a command-line program /app/calc that performs arithmetic on fixed-point decimal numbers with EXACT…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Goal: Read a single line from stdin containing an arithmetic expression, evaluate it left-to-right with…

The task

**Goal:** Read a single line from stdin containing an arithmetic expression, evaluate it left-to-right with operator precedence (only `*` and `/` have higher precedence than `+` and `-`), and print the result to stdout followed by a newline.

Part of ai-and/termgrade-environments.