Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
how to find sum of array
Molly Taylor
Programming language:
Whatever
2021-08-23 16:16:27
0
Q:
how to find sum of array
AndrE Stannek
Code:
Whatever
2021-07-26 00:03:15
//C++ int arr[5]={1,2,3,4,5}; int sum=0; for(int i=0; i<5; i++){sum+=arr[i];} cout<<sum;
0
Tags
array
sum
find
how
Related
max subsequence sum in array
how to sum up an array
Write a function that takes an array of number values and returns the sum.
sum the all values from an array
New to Communities?
Join the community