title: Python while loop subtraction
body: <p>This is a really stupid question but I haven't used this in awhile and can't remember how to do it. I'm doing a recursion problem and need to show the numbers counting down to basically show how the recursion is working. However, I can't seem to figure it out. Here is my code. </p>
  
  <pre><code>def main():
  
      #have user input first number
      x = int(input('Enter the first number: '))
  
      #have user input second number
      y = int(input('Enter the second number: '))
  
      #calculate result by calling recursive function
      result = mult(x, y)
  
      #print the result
      print(x, 'times', y, 'is', result)
  
  #define a function that uses recursion
  def mult(x, y):
      # create a loop to display the numbers
      count = y
      while count &gt; 0:
          print('First number =', x, 'Second number =', count)
          count -= 1
      #use recursion to multiply the numbers
      if x == 0:
          return 0
      elif x == 1:
          return y
      else:
          return y + mult(x - 1, y)
  
  main()
  </code></pre>
  
  <p>I need the output to say this:</p>
  
  <pre class="lang-none prettyprint-override"><code>Enter the first number: 5
  Enter the second number: 7
  First number = 5 Second Number = 7
  First number = 5 Second Number = 6
  First number = 5 Second Number = 5
  First number = 5 Second Number = 4
  First number = 5 Second Number = 3
  First number = 5 Second Number = 2
  First number = 5 Second Number = 1
  5 times 7 = 35
  </code></pre>
  
  <p>So it's working for the most part, however now it is displaying this:</p>
  
  <pre class="lang-none prettyprint-override"><code>Enter the first number: 5
  Enter the second number: 7
  First number = 5 Second number = 7
  First number = 5 Second number = 6
  First number = 5 Second number = 5
  First number = 5 Second number = 4
  First number = 5 Second number = 3
  First number = 5 Second number = 2
  First number = 5 Second number = 1
  First number = 4 Second number = 7
  First number = 4 Second number = 6
  First number = 4 Second number = 5
  First number = 4 Second number = 4
  First number = 4 Second number = 3
  First number = 4 Second number = 2
  First number = 4 Second number = 1
  First number = 3 Second number = 7
  First number = 3 Second number = 6
  First number = 3 Second number = 5
  First number = 3 Second number = 4
  First number = 3 Second number = 3
  First number = 3 Second number = 2
  First number = 3 Second number = 1
  First number = 2 Second number = 7
  First number = 2 Second number = 6
  First number = 2 Second number = 5
  First number = 2 Second number = 4
  First number = 2 Second number = 3
  First number = 2 Second number = 2
  First number = 2 Second number = 1
  First number = 1 Second number = 7
  First number = 1 Second number = 6
  First number = 1 Second number = 5
  First number = 1 Second number = 4
  First number = 1 Second number = 3
  First number = 1 Second number = 2
  First number = 1 Second number = 1
  5 times 7 is 35
  </code></pre>