Sum of every element of array. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Sum of every element of array.

27th Dec 2022, 6:42 PM
PRINCE KUMAR
PRINCE KUMAR - avatar
2 Answers
+ 1
You have to learn basic of array and working of loop iterate your loop till length of array times and take one extra variable which has initial value zero then initial value += zeroth index Do same for all the array elements
27th Dec 2022, 7:11 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
Sum of the elements using array using c program https://code.sololearn.com/ck448UKyDVIE/?ref=app
31st Dec 2022, 5:51 PM
Muhammed Shibil M
Muhammed Shibil M - avatar