Posts

Showing posts with the label error

C: Modify calculator to catch divide by zero error.

Image
Calculator now catches divide by zero error by testing to see if either user inputs are equal to 0, otherwise it executes the division. Repl: https://replit.com/@pereiradaniel/Calculator-Exponent-function-added Git repo: https://github.com/pereiradaniel/c_programs/blob/master/calc/calc4.c