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

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -