break down the problem into little pieces. Get one piece to work before you try the next. So, perhaps at first,
you should figure out how to get the input of 10. Once you can do that, figure out how to look at every number (i.e. at first, just print it).
Then figure out how to add a number to an array.
Then figure out how to tell if a number is even.
Then figure out how to tell if a number is odd.
and so on. You should note that every task listed above can be done 100% independently from all the others. That is a key piece of programming - separate out individual tasks.