if else if ternary exercises