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

print("isOn")

You are viewing a single comment. View All
ash15khng (234)

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