Operadores ternos anidados rápidos
// program to check if a number is positive, zero, or negative
let num = 7
let result = (num == 0) ? "Zero" : ((num > 0) ? "Positive" : "Negative")
print("The number is \(result).")
SAMER SAEID