Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sum of ele in arr

size=int(input("ENTER ARRAY SIZE"))arr=[]for i in range(size):    element=int(input())    arr.append(element)print("SUM OF ARRAY : ",sum(arr))
Source by prepinsta.com #
 
PREVIOUS NEXT
Tagged: #sum #ele #arr
ADD COMMENT
Topic
Name
9+3 =