Code

Hi All,

    I want to write the logic for the below requirement 

For example:

------------------

My Input is 1 

Output should be : {2,3,4,5}   

can  anyone share the logic 

Thanks in Advance!

  Discussion posts and replies are publicly visible

Parents
  • As has already been said, we need may more info. If you need the proceeding X number of integers after the input number the below will work. But this is really just a stab in the dark.

    a!localVariables(
      local!inputNumber: 5,
      local!numberOfSubsequentIntegersToReturn: 4,
      1 + local!inputNumber + enumerate(local!numberOfSubsequentNumbersToReturn)
    )

Reply
  • As has already been said, we need may more info. If you need the proceeding X number of integers after the input number the below will work. But this is really just a stab in the dark.

    a!localVariables(
      local!inputNumber: 5,
      local!numberOfSubsequentIntegersToReturn: 4,
      1 + local!inputNumber + enumerate(local!numberOfSubsequentNumbersToReturn)
    )

Children
No Data