title: write a program that determines if user input is even or odd and loops
body: <p>I am trying to make a program that will continuously take a user input and determine if the user input is even or odd. The program will only stop when zero is entered.</p>
  
  <p>However, when I enter zero, it <code>print</code>s <code>0 is an even number</code> followed by <code>All done!</code>. The expected output is just <code>All done!</code>. Here is my code:</p>
  
  <pre><code>def main():
      total = 0
      count = 0
  
      while True:
          entry=int(input('Enter a number or 0 to quit:'))
          if entry % 2 == 0:
              print (format (entry), 'is an even number.')
          else:
              print (format (entry),'is an odd number.')
  
          if entry == 0:
              print ('All done!')
              break
  main()
  </code></pre>