Computer Science, asked by uddiptachandra23, 3 months ago

WAP to accept n numbers and and find sum of positive even numbers.​

Answers

Answered by shreyamishra8374
0

1. Take the number N upto which we have to find the sum as input.

2. Using for loop take the elements one by one from 1 to N.

3. Using if,else statements separate the element as even or odd.

4. Add the even and odd numbers separately and store it in different variables.

5. Print the sum separately and exit

Similar questions