A
Anonymous
Guest
Hi,
I am looking for an answer for a function.
Question: Given an array A = [10,20,30,40,50,60,70,80,90,100], write a function that receives two integers as parameters. The function returns the sum of elements in the array found between those two integers.
For example, if we use 20 and 50 as parameters, the function should return 140.
Can anybody help me to sort this out?
Thanks
I am looking for an answer for a function.
Question: Given an array A = [10,20,30,40,50,60,70,80,90,100], write a function that receives two integers as parameters. The function returns the sum of elements in the array found between those two integers.
For example, if we use 20 and 50 as parameters, the function should return 140.
Can anybody help me to sort this out?
Thanks