Skip to content

Instantly share code, notes, and snippets.

@artturijalli
Last active January 27, 2022 07:16
Show Gist options
  • Save artturijalli/afb5cefa41262c53496d8e52723f2ded to your computer and use it in GitHub Desktop.
Save artturijalli/afb5cefa41262c53496d8e52723f2ded to your computer and use it in GitHub Desktop.
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