Computer Science, asked by vaishnaviy413, 2 months ago

Question 7
(151
Write a program to accept 20 integers from the user using Scanner class and store
them in an array. Find and display the sum of all the odd elements and product of all
the even elements.
For example, if an array of 5 elements has numbers like 2,16,5,1,3 then sum of odd
elements is 5+1+3=8 and product of even elements is 2* 16 =32​

Answers

Answered by mk94436muthu
0

Answer:

bgsgjs5#-₹-₹&₹

Answered by srinivasanisetti9172
0

Answer:

u count the odd and even elements

Similar questions