Last active
July 15, 2020 13:11
-
-
Save anjanashankar9/884f7f733b384a758dc74d279c8dcc0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public int add(int[] arr) { | |
sum = 0; | |
for (int i=0; i<arr.length; i++) { | |
sum+=arr[i] | |
} | |
return sum; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment