// a < b && b < c
// Analysis
	if(Math.abs(a)==0)
		min = "green";
	else
		min = "red";
For this section of code to be executed, the following conditionals must have failed: (Math.abs(a)>=Math.abs(b)) and (Math.abs(b)>=Math.abs(c)). Therefore, we know with certainty that 'a' is less than 'b', and that 'b' is less than 'c'. Because of this situation, we can safely assign min to 'a' unless 'a' is zero which is exactly what the code above does.

Close Window