I wonder if there is any trick to shorten the part of the code where you calculate the temperature closest to zero.
I am using C for this challenge. Currently, for me, that part of code is 26 characters long (excluding the semicolon) including the ternary operator.
Maybe there is a way to find the temperature closest to zero by using bitwise operators? I have found a way to avoid utilising math functions (from the math library) to calculate it, but apart from that, I can't think of anything else.