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
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
0
Answer:
please make the brainliest answer
please
Similar questions
English,
2 months ago
Math,
2 months ago
Social Sciences,
4 months ago
India Languages,
10 months ago
Science,
10 months ago