Jump to content

jameskv

New Members
  • Posts

    1
  • Joined

  • Last visited

jameskv's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I am looking to sort this array function in PHP. 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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.