title: How do I make a program that asks the user for a limit and
body: <p>I've got this code that asks the user for a limit, and then prints out the sequence of square numbers that are less than or equal to the limit provided.</p>
  
  <pre><code>n=int(input("Limit: "))
  counter = 2
  while counter &lt;= n:
      a = counter*counter
      counter=a
      print(a)
  </code></pre>
  
  <p>This is my current code, it's meant to work like this:</p>
  
  <pre><code>Max: 100
  1
  4
  9
  16
  25
  36
  49
  64
  81
  100
  </code></pre>
  
  <p>I'm stuck, how do I fix it? Thanks!</p>