AAA 7.

asked • 04/22/20

C++ code on odd and even number using vector

Create 2 Vectors using the For Statement

Vector 1 = will have ODD numbers from 1 to 99➔vec1 – vector name

Vector 2 = will have EVEN numbers from 2 to 100➔vec2 – vector name

Print Vector 1 & 2 from the Vectors. 2 Columns aligned next to each other With titles.And Element numbers.

Use the shuffle command and shuffle each Vector, and print out both Vectors in 2 columns aligned next to each other

1 Expert Answer


Patrick B. answered • 04/23/20

4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.


Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.