Computer Science, asked by thanusri18, 2 months ago

WAP to enter 10 numbers

a) Display the sum of these numbers.

b) Display which are divisible by 2.

pls answer me . very important​

Answers

Answered by dakshsingh24
1

Answer:

(in python, for adding 10 numbers)

n1 = int(input("Enter: "))

n2 = int(input("Enter: "))

n3 = int(input("Enter: "))

n4 = int(input("Enter: "))

n5 = int(input("Enter: "))

n6 = int(input("Enter: "))

n7 = int(input("Enter: "))

n8 = int(input("Enter: "))

n9 = int(input("Enter: "))

n10 = int(input("Enter: "))

add = n1 + n2 + n3 + n4 + n5 + n6 + n7 + n8 + n9 + n10

print("Addition: " + str(add))

(Note: if you want

, you can also use the try and except statements)

Similar questions