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?
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?
Create a free account to access the full topic