title: How do you multiply using while without using multiplication?
body: <p>I want to know how to get the product of two integers using only the addition or subtraction operators and without using the division and multiplication. If you could add the while statement that would be helpful. A</p>
  
  <p>Basically, I want to know how to add a certain number a certain number of times as defined by the user. Adding number x to itself y number of times. To have the user define the number of times to loop this, use int (). Thanks and please use comments where necessary. I am still a bit new to this and thank you.</p>
  
  <p>Here is my current code:</p>
  
  <pre><code># Asks user for two numbers to multiply
  print ('Give me two numbers to multiply.')
  print ()
  # Gets input from the user
  x = int ( input ('First Number: '))
  y = int ( input ('Second Number: '))
  z = 0
  # Does the "multipling"
  while z &lt;= x*y:
      print (z)
      z = z + x
      time.sleep(.2)
  </code></pre>
  
  <p>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</p>
  
  <p>Thanks for the help...
  i figured it out though</p>
  
  <p>import time</p>
  
  <p>print ('Two Digit Multiplication Calculator')
  print ('===================================')
  print ()
  print ('Give me two numbers.')</p>
  
  <p>x = int ( input (':'))</p>
  
  <p>y = int ( input (':'))</p>
  
  <p>z = 0</p>
  
  <p>while x > 0:
      print (z)
      print ()
      x = x - 1
      z = y + z
      time.sleep (.2)</p>
  
  <p>print (z+x)</p>