Effacer les filtres
Effacer les filtres

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

3 vues (au cours des 30 derniers jours)
KSK
KSK le 27 Mai 2015
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

Réponses (2)

Walter Roberson
Walter Roberson le 27 Mai 2015
Hints: input(), and factor()

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

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by