Question: CHALLENGE ACTIVITY 5 . 7 . 1 : Making and using vectors. 5 7 9 7 0 4 . 4 4 6 5 7 5

CHALLENGE
ACTIVITY
5.7.1: Making and using vectors.
579704.4465750.q3zqy7
Jump to level 1
Integers are read from input and stored into a vector until 0 is read. Output the odd elements in the vector in reverse order. End each number with a newline.
Ex: If the input is -7,4-2,1,0, then the output is:
1
-7
Note: )(0 returns true if x is odd.124
CHALLENGE ACTIVITY 5 . 7 . 1 : Making and using

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!