Loading...
beginner
Problem 01 • Step 04
All Operators
Now that you’ve written a recursive rule for +, you’re ready to handle the rest.
This step expands your evaluator to support all four basic operators: addition, subtraction, multiplication, and division.
Each rule follows the same idea:
- Evaluate the left and right parts recursively.
- Apply the operator to the results.
Your task is to complete the four operator rules in the code — where it says // your code here for each one.