Dynamic Sum of Array Elements

Hey @Aswin_Ramesh

You need to do this as below, once you get the number N from the input dialog…

arrNum.Take(N).Sum()

The above statement will give you the sum of the elements until the size mentioned in the input dialog

You can use that in the assign statement & store it in a variable as well

Hope this helps

Thanks
#nK

1 Like