UP | HOME

HW15
COP-3402

Using the example in class as a starting point, write an interpreter in C that can compute the value of expressions like 9/2, 2^7, and 3+4, for single arithmetic expressions on single digits using the operators + for addition, - for subtraction, * for multiplication~, / for division, % for modulo, and ^ for exponentation.

Author: Paul Gazzillo

Created: 2025-03-05 Wed 07:23

Validate