Forums
Learn
Careers
Store
About
SUBSCRIBE
GO FURTHER, FASTER: Try the Swift Career Accelerator today! >>
Question 1/12: This code will print a message – true or false?
Hint: Remember that both sides of && must be true in order for the whole condition to be true. Click to show.
&&
let a = 10 let b = 10 if a >= 10 && b <= 10 { print("Hello, Swift!") }
Correct! a is greater or equal to 10, and b is less than or equal to 10, so this will print a message.
a
b
Oops – that's not correct. a is greater or equal to 10, and b is less than or equal to 10, so this will print a message.
Return to Review Menu
You are not logged in
Link copied to your pasteboard.