Swift - Operators and Expressions
Find the error in this Swift code using the ternary operator:
let score = 85 let grade = score >= 90 ? "A" : score >= 80 ? "B" : "C"
let score = 85 let grade = score >= 90 ? "A" : score >= 80 ? "B" : "C"
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions