Question: Write code to declare a vector of type int, fill it with 360 random values in the range 1 to 250 inclusive, and then display






Write code to declare a vector of type int, fill it with 360 random values in the range 1 to 250 inclusive, and then display the sum of the values in the vector. (Efficiency counts) O vector int> V; int size 360, sum-0; for(int i 0;i V; int size = 360, sum=0; for(int i=0;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
