Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Problem 1789. Adding and Subtracting UINT variables

Created by Richard Zapor

Given UINT class variables output the correct solution to A-B+C.

Input: A,B,C Three uint variables

Output: solution to A-B+C

Note: Negative answer results in an expected Zero for class uint

Problem Group

Solution Statistics

20 correct solutions 8 incorrect solutions
Last solution submitted on Jun 16, 2014