X693: Multiple Comparisons in C++

Complete the code so that the variable polarity is -1 when adding first and second is negative, but polarity is 1 when adding first and second is positive, and polarity is 0 when adding first and second is exactly zero.

Your Answer:

Reset

Practice a different C++ exercise

Feedback

Your feedback will appear here when you check your answer.