explain the program to find the sum of even and odd numbers in an array.
Answers
Answered by
0
Answer:
Calculating the sum of odd and even numbers using “for loop”
First, define an array with elements. Next, declare and initialize three variables to find sum as oddSum=0, evenSum=0 and i; ... The “else statement” finds odd numbers and adds to oddSum. Finally, the sums of odd numbers and even numbers are displayed.
Step-by-step explanation:
Please mark me as brainliest.
Answered by
0
Answer:
We don't do about that sorry
Similar questions