Computer Science, asked by sandhyashendge514, 1 month ago

(3) Accept
10 numbers, find
sum and average using loops

Answers

Answered by AdityaSingh2746
0

i = 0

sum = 0

inputNumbers = []

while i <= 10:

inputNumber = input('Write a number: ')

inputNumbers.append(inputNumber)

sum = sum + inputNumber

i = i + 1

for j in inputNumbers:

print('Numbers inputed by user ', j)

print(sum)

This might help

Similar questions