Logic:-
Here we need to solve two problems one in even-odd and second in positive-negative and according to the problem, As we know that if the number is divided by 2 then number is even and if not then the number is odd. we can solve before proceeding even-odd, and if the number is greater than zero then the number is positive and if the number is less then zero then the number is negative.
Output:
Enter The Size of Array
6
Enter The Array Element
1
-2
-3
4
-5
6
10 Is Sum of Even-Positive
1 Is Sum of Odd-Positive
-2 Is Sum of Even-Negative
-8 Is Sum of Odd-Negative
need an explanation for this answer? contact us directly to get an explanation for this answer