Question: CHALLENGE ACTIVITY 9 . 4 . 2 : Iterating through vectors. 5 9 6 3 6 0 4 5 2 1 1 0 8 qx

CHALLENGE
ACTIVITY
9.4.2: Iterating through vectors.
5963604521108 qx 3zay 7
Jump to level 1
Integer vecLength is read from input as the number of elements in vector yearlyPrices. Given the integer vector yearlyPrices, write a for loop to output the integers in yearlyPrices in reverse order. Output each integer followed by a comma and a space ("."). Ex: If the input is:
6
88,99,111,126,138,157
then the output is:
157,138,126,111,99,88,
CHALLENGE ACTIVITY 9 . 4 . 2 : Iterating through

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!