A

Admin • 670.22K Points
Coach

Q. What will the following Swift code output?

Code:
let temperature = 30
print(temperature >= 25 && temperature <= 35)
  • (A) true
  • (B) false
  • (C) nil
  • (D) Error
  • Correct Answer - Option(A)
  • Views: 1
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin
30 is between 25 and 35, so the logical AND condition returns true.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.