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
: Iterating through vectors.
qx zay
Jump to level
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:
then the output is:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
