Write a code segment that places multiples of 5 into all the slots of an int vector
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a code segment that places multiples of 5 into all the slots of an int vector called nums that is already declared. The number of slots in this vector is unknown. Start with the value 5. For example, when this code segment is through executing (and assuming these slots exist), slot 0 will have a 5, slot I will have a 10, slot 2 will have a 15. etc.
Related Book For
Posted Date: