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 CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by