Back to Browse

Armstrong Number in Java Programming Language

8 views
Feb 6, 2021
9:49

What is Armstrong number ? 153 is the Armstrong number, why? Any number their first separate digit and than every digits cube and than summation and if original number and every digits cube and than sum both are same than that number is Armstrong number other wise that number is not Armstrong number. For example : 153 their digits cube and sum=(3*3*3)+ (5*5*5)+(1*1*1) sum=27+125+1, sum=153 so that number separate digits cube, sum and match original number both are same, so we can say that 153 number is Armstrong number and 154 their digits cube and sum=(4*4*4)+(5*5*5)+(1*1*1) sum=64+125+1, sum=190 so that number separate digits cube, sum and original number are not same, we can say that 154 number is not armstrong number. In this video lecture cover the Armstrong number or not using while loop and if else decision statement and also trace this program line by line using Watch and Output Window. How to set the Watch window also explain step by step.

Download

0 formats

No download links available.

Armstrong Number in Java Programming Language | NatokHD