In/Out workflow help

Can anyone help me with the below scenario?
Main.xaml
it will have array 10,11,12,13,14,15
Child.xaml(called from main)
this will find the sum of all the even elements of the array and odd elements of the array.
SumEven
SumOdd
Second_Child.xaml(Called from Child.xaml)
It will print the two sums

This is the generic scenario that i want to accomplish. Help is appreciated. Please share the xaml files for reference

Create a Child.xaml with the following arguments -

  1. in_Array - Direction IN, data type - Array of Integers [pass the array from Main to Child]
  2. out_EvenSum - Direction OUT, data type - Integer [assign to local variable in Main eg., intEvenSum]
  3. out_OddSum - Direction OUT, data type - Integer [assign to local variable in Main eg., intOddSum]

Create a Second_Child.xaml with the following arguments -

  1. in_EvenSum - Direction IN, data type - Integer [pass the intEvenSum]
  2. in_OddSum - Direction IN, data type - Integer [pass the intOddSum]

For sample files (how to use arguments in a workflow):

Regards,
Karthik Byggari

Have to pass the elements of array from Main to child one by one. Cant pass the whole array

You have to pass the whole array.

Create a variable in Main workflow with array data type and pass the whole array as the argument.