Computer Science, asked by sachinbhatt, 4 months ago

write a program to display the sum of positive even numbers and negative odd numbers from a list of numbers entered by the user​

Answers

Answered by nishanth50141
0

Answer:

Examples:

Input: -7 5 60 -34 1

Output:

Sum of negative numbers is -41

Sum of even positive numbers is 60

Sum of odd positive numbers is 6

Input: 1 -1 50 -2 0 -3

Output:

Sum of negative numbers is -6

Sum of even positive numbers is 50

Sum of odd positive numbers is 1

Negative numbers are the numbers less than 0 while positive even numbers are numbers greater than 0 and also divisible by 2. 0 is assumed to be a positive even number, in this case.

Answered by amankumar991123
0

Answer:

please make the brainliest answer

please

Similar questions