How do you print in swift only the even numbers from 1-10 in a range of 1...100? -
Create another range from 1 to 100. Use it to print numbers between only 1 and 10. You will need to have a joint statement used to close it for loop for you.
Think about the hours in this office: try it:
In Number 1 ... 100 {if number is% 2 == 0 & amp; Amp; Number & lt; 11 {println (number)}}
Comments
Post a Comment