Armstrong Number - MATLAB Cody - MATLAB Central

Problem 57795. Armstrong Number

Difficulty:Rate
Write a function name armstrong_check that checks whether the given input is an Armstrong Number or not. It returns logical True or False.
An Armstrong number is one whose sum of digits raised to the power of the number of digits equals the number itself. For example, 371 is an Armstrong number because 3^3 + 7^3 + 1^3 = 371.

Solution Stats

36.84% Correct | 63.16% Incorrect
Last Solution submitted on Apr 25, 2024

Problem Comments

Solution Comments

Show comments
R2025a Pre-release highlights
This topic is for discussing highlights to the current R2025a Pre-release.
13
5

Problem Recent Solvers20

Suggested Problems

More from this Author8

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page