Cody

Problem 2690. Armstrong Number

Created by VIVEK RUHELA in Community

Determine whether the given input n-digit number is Armstrong Number or not.

Return True if it is an Armstrong Number. An n-Digit Armstrong number is an integer such that the sum of the power n of its digit is equal to the number itself.

For Example:

 371 = 3^3 + 7^3 + 1^3  or 
 1741725 = 1^7 + 7^7 + 4^7 + 1^7 + 7^7 + 2^7 + 5^7

Solution Stats

54.05% Correct | 45.95% Incorrect
Last solution submitted on Mar 21, 2019

Problem Comments

Recent Solvers161

Suggested Problems

More from this Author2

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!