integer odd even

problem: (courtesy:101cproblems.com)
Take an array of integer data type of size 5. Scan the values from the user. Now print the output like the following one-
Values in array: 10 25 20 15 30
Sum of odd values: 40
Sum of even values: 60

code: