Swift Array Programming Exercises: Check if a given array of integers contains no 2's or it contains no 5's
Write a Swift program to check if a given array of integers contains no 2's or it contains no 5's.
Pictorial Presentation:

Sample Solution:
Swift Code:
Sample Output:
true true true false
Swift Programming Code Editor:
Improve this sample solution and post your code through Disqus
Previous: Write a Swift program to test if every element is a 2 or a 5 of a given array of integers.
Next:Write a Swift program to check if a given array of integers contains a 3 next to a 3 or a 5 next to a 5, but not both.
What is the difficulty level of this exercise?