Answer:
def product_sum( num1, num2 ):
accumulator = 0
product = num1 * num2
accumulator += product
print ( " First number: {} \\, Second number: {} \\, \
Product: {} \\, Accumulated product: {} ".format( num1, num2, product, \ accumulator))
num1 = 1
num2 = 0
for num1 == 0 and num2 ==0:
for num1 == True and num2 == True:
product_sum( num1, num2)
num1 = int(input( "Enter first number: "))
num2 = int( input(" Enter second number: " ))
Step-by-step explanation:
The for loop in the python source code calls a function "product_sum" which multiplies two integer numbers and add the product to an existing variable.
The function prints out the current two numbers, the product and the accumulated products. The for loop continuously prompts for user input for the two numbers but stops when both numbers are zero.