title: How to find the output of a nested loop with a break
body: <p>I have to figure out what the output is, I know what the answer is but I just have no idea how they got that answer. If someone could do a step by step explanation that would be great.</p>
  <pre><code>a = int(input())
  b = int(input())
  c = int(input())
  result = 0
  while a &lt; b:
      result = a * 2
      print(result)
      if result &gt; c:
          break
      a += 4
  
  </code></pre>