Question: 7. Write a program that generates a vector with 30 random integers between 20 and 20 and then finds the sum of all the elements
7. Write a program that generates a vector with 30 random integers between
–20 and 20 and then finds the sum of all the elements that are divisible by 3.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
