How to write MATLAB script for prime, perfect and Armstrong number?

1 回表示 (過去 30 日間)
KSK
KSK 2015 年 5 月 27 日
コメント済み: Walter Roberson 2015 年 10 月 1 日
Dear all,
I Need your help to Write MATLAB scripts for the following:
a. To accept two numbers from the user; Display all prime numbers between these two numbers.
b. To accept two numbers from the user and display perfect numbers between these two numbers.
c. To accept two numbers from the user and display armstrong number between these numbers.
Thank you in advance!
Regards,
Martin

回答 (2 件)

Walter Roberson
Walter Roberson 2015 年 5 月 27 日
Hints: input(), and factor()

koo xing yun
koo xing yun 2015 年 10 月 1 日
Hi can I know have you solve all these 3 questions? because I have a similar quest to your. so I need some help

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by