X743: Compare Difference C++

Given three variables called first, second and third. If third is less than the difference of first and second, then return third. Otherwise, return the difference of first and second. For example, if first = 10, second = 6, third = 2, then 2 is less than (10 - 6), so your code will return third. If first = 10, second = 6, and third = 5, then your code will return the difference, first – second, which is 4.

Your Answer:

Feedback

Your feedback will appear here when you check your answer.