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