Count variants

Report a typo

In one of the lines of a Scala program you see this:

if (x * x >= 0) 1 else if (x * x < 0) -1 else 0

How many different results can you receive if x is Int?

Enter a number
___

Create a free account to access the full topic