Below code loops through the list $integ and pushes the user inputs to a nested array $nArr
$integ = @(2,1) $nArr = foreach