Can I write a loop statement using randi?
Info
This question is closed. Reopen it to edit or answer.
Show older comments
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.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!