Hello, I ask how I should do this program:
I have values entered: odd numbers and even numbers
data = {1, 2, 5, 7, 8, 4, 12, 14, 15, 16, 18, 12, 17, 12, 15}
I need a list of numbers: Odd numbers: 6 Even numbers: 9
Thank you for the advice :)
Thank you :)
data = {1, 2, 5, 7, 8, 4, 12, 14, 15, 16, 18, 12, 17, 12, 15}; Length[Select[data, EvenQ]] 9