filmov
tv
JavaScript Program to Check Whether a Number is Armstrong Number or Not
![preview_player](https://i.ytimg.com/vi/4de3qBdPG1A/maxresdefault.jpg)
Показать описание
Write a JavaScript program to input a number from user and check whether given number is Armstrong number or not. How to check Armstrong numbers in JavaScript program. Logic to check Armstrong numbers in JavaScript programming.
Example
Input number: 371
Output
371 is armstrong number
What is Armstrong number?
An Armstrong number is a n-digit number that is equal to the sum of the nth power of its digits. For example -
6 = 61 = 6
371 = 33 + 73 + 13 = 371
Required knowledge
Basic JavaScript programming, If else, While loop
Thank's For Watching This Video
Like Share Subscribe
Example
Input number: 371
Output
371 is armstrong number
What is Armstrong number?
An Armstrong number is a n-digit number that is equal to the sum of the nth power of its digits. For example -
6 = 61 = 6
371 = 33 + 73 + 13 = 371
Required knowledge
Basic JavaScript programming, If else, While loop
Thank's For Watching This Video
Like Share Subscribe