Problem 1789. Adding and Subtracting UINT variables
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
Solution Stats
Problem Comments
-
1 Comment
David Verrelli
on 18 Oct 2017
What's "correct" may be in the eye of the beholder....
Solution Comments
Show commentsProblem Recent Solvers46
Suggested Problems
-
Who knows the last digit of pi?
654 Solvers
-
871 Solvers
-
Who is the smartest MATLAB programmer?
744 Solvers
-
583 Solvers
-
Rounding off numbers to n decimals
4319 Solvers
More from this Author308
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!