Respuesta :

Answer:

m = 0

summ = 0

n=int(input('Enter a number, 0 to end: '))

while n != 0:

   summ = summ + n

   m = m + 1

   n=int(input('Enter a number, 0 to end: '))

print('You entered',m,'numbers and the sum of the numbers you entered is', summ)

Explanation:

m is used to count the numbers entered, summ is used to store the summation of the numbers, n is used to store the number entered. When a number is entered, it is checked if the number is not equal to 0 using a while loop. If the condition is True, the loop body is executed, which adds the number entered to sum which has an initial value of 0, this is repeated until zero (0) is entered which terminates the loop and prints out the summation of the entered number.