Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

sum of array in java

Input : arr[] = {1, 2, 3}
Output : 6
1 + 2 + 3 = 6

Input : arr[] = {15, 12, 13, 10}
Output : 50
15 + 12 + 13 + 10 = 50
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #sum #array #java
ADD COMMENT
Topic
Name
1+3 =