Python
n=10
a=[0 for i in range(n)]
s=0
for i in range(n):
a[i]=int(input("a[{}]=".format(i)))
if a[i]>5: s+=a[i]
print(a)
print(s)
Python
n=10
a=[0 for i in range(n)]
s=0
for i in range(n):
a[i]=int(input("a[{}]=".format(i)))
if a[i]>5: s+=a[i]
print(a)
print(s)