title: for loop over odd numbers in swift
body: <p>I am trying to solve the task</p>
  
  <blockquote>
    <p>Using a standard for-in loop add all odd numbers less than or equal to 100 to the oddNumbers array</p>
  </blockquote>
  
  <p>I tried the following: </p>
  
  <pre><code>var oddNumbers = [Int]()
  var numbt = 0
  for newNumt in 0..&lt;100 {
      var newNumt = numbt + 1; numbt += 2; oddNumbers.append(newNumt)
  }
  
  print(oddNumbers)
  </code></pre>
  
  <p>This results in:</p>
  
  <blockquote>
    <p>1,3,5,7,9,...199</p>
  </blockquote>
  
  <p>My question is: Why does it print numbers above 100 although I specify the range between 0 and &lt;100?</p>