Question: c++ 3) (10 points) Write a program that reads integers from standard input until reaching an end of file, then prints them on standard output,
3) (10 points) Write a program that reads integers from standard input until reaching an end of file, then prints them on standard output, separated by a space, with the odd numbers appearing first, followed by the even numbers. Odd numbers must appear in the same order in which they appeared in input (similarly for even numbers). It is assumed that all numbers given as input are positive. Write your program on the back of this page
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
