Question: Using C++, Create a vector and put the following 25 floating-point numbers into it using a for loop: 0.5 1.5 2.5 3.5 4.5 5.5 6.5
Using C++, Create a vector and put the following 25 floating-point numbers into it using a for loop:
0.5 1.5 2.5 3.5 4.5 5.5 6.5 7.5 8.5 9.5 10.5 11.5
12.5 13.5 14.5 15.5 16.5 17.5 18.5 19.5 20.5 21.5
22.5 23.5 24.5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
