Last active
January 27, 2022 07:16
-
-
Save artturijalli/afb5cefa41262c53496d8e52723f2ded to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let ages = [20, 28, 30, 45] | |
var allAdults = true | |
for age in ages { | |
if age <= 18 { | |
allAdults = false | |
break | |
} | |
} | |
print(allAdults) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment