title: I have an assignment to write odd number
body: <p>I wanted to print odd numbers as many as input.</p>
  
  <p>Example: input=7
  Output: 1,3,5,7,9,11,13</p>
  
  <p>This is what i wrote</p>
  
  <hr>
  
  <pre><code>a=int(input("input how many odd numbers to print: "))
  for i in range(a):
      if(i%2==1):
          print(i)
  </code></pre>
  
  <hr>
  
  <p>Yes, the output is obviously
  1
  3
  5</p>
  
  <p>And i tried this too</p>
  
  <hr>
  
  <pre><code>a=int(input("input ho many odd numbers to print: "))
  i=1
  while(i&lt;=a):
      if(i%2==1):
          print(i)
  </code></pre>
  
  <hr>
  
  <p>The output is infinite loop printing the input number</p>