Why does this line doesnt work
x > highNum ? highNum = x : y > highNum ? highNum = y : highNum = highNum
In this case this line is in a loop and x and y is different everytime. I tried to find the highest number at the end and thought this would work. In my mind this reads as: If x is higher than high num highnum should get assigned the value of x if not. is y bigger? if yes y should be the new highnum. if not. dont change high num