Contest
Letter
About
A. Natural numbers --- N natural numbers are entered in the range from 1 to 100. Using a QUEUE, output the sequence of numbers such as: - all odd numbers are displayed first; - after them, all even numbers are displayed; - the output of the numbers corresponds to the order in which they were entered. Sample input: 12 11 12 15 17 19 21 23 9 10 16 18 20 Sample output: 11 15 17 19 21 23 9 12 10 16 18 20