Generate all the prime numbers that are less than or equal to 100 using loop

3 次查看(过去 30 天)
Generate all the prime numbers that are less than or equal to 100 using loop ,make it simple and understandable as i am a beginner
  1 个评论
Rik
Rik 2024-5-25

You can find guidelines for posting homework on this forum here. If you have trouble with Matlab basics you may consider doing the Onramp tutorial (which is provided for free by Mathworks).

What did you try yourself?

请先登录,再进行评论。

回答(1 个)

Animesh
Animesh 2024-5-24
The following MATLAB answer might help:

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by