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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Systems Analysis And Design Using MATLAB Questions!