http://i.imgur.com/V7IXUGn.png

It tells me the hint of using the ternary operator twice.

I understand that ternary operators are basically:

if (condition is true) ? then (this happens): else (this happens);

But the problem has two consecutive if statements. So far I have this:

y = x != 0 ? a > b ? y = a/x: y = b/x: a > b ? y = a/0.000001: y = b/0.000001;

Would that work?