All Questions
1 question
14
votes
15
answers
14k
views
Compare two integers in C or C++ without comparison operators
Produce the shortest program which takes two signed integers as input (through stdin or as arguments) and displays 3 different outputs depending upon whether the first number is (1) greater than, (2) ...