Can I write a loop statement using randi?

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.

Answers (0)

This question is closed.

Tags

Asked:

on 9 May 2020

Closed:

on 9 May 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!