Ad
  • Default User Avatar

    How we can mention result in getWorth which is mentioned in result declaration
    By that,I mean why we can't do like this:
    return (worth[index] * value);
    And I don't understatnd what is initial value of result by the way?
    I have cognitive dissonance >_<