Ask coding questions

← Back to all posts
ternary statement
Triecie77 (0)

Write a one line ternary statement that sets your AC's isOn property to true when the temperature is greater than or equal to 75, and sets it false in all other cases.

Print your isOn property to pass the tests.

var temperature: Int = 73 <-- This is the sysstem had this solution
set already
var isOn: Bool

let temperature >= 75


ash15khng (472)

1) What language is this?
2) What is "set already"?