Question: write a C# Create a function that takes an array of positive and negative numbers. Return an array where the first element is the count
write a C# Create a function that takes an array of positive and negative numbers. Return an array where the first element is the count of positive numbers and the second element is the sum of negative numbers. Examples CountPosSumNeg ([1, 2, 3, 4, 5, 6, 7, 8,9,10,-11, - 12, - 13, - 14, -15]) --> (10, -65) CountPosSumNeg ([92, 6, 73, -77, 81, -90, 99, 8, -85, 34

]) --> (7, - 252)
Create a function that takes an array of positive and negative numbers. Return an array where the first element is the count of positive numbers and the second element is the sum of negative numbers. Examples CountPos SumNeg ([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, -11, -12, -13, -14, -15]) [10, -65] CountPos SumNeg ([92, 6, 73, -77, 81,-90, 99, 8, -85, 34]) [7, -252]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
