C PROGRAM TO FIND WHETHER A NUMBER IS AMSTRONG NUMBER OR NOT

62 views · Published 25 January 2016 · 1:57 · Indexed 4 November 2026

Channel: Interview DOT · 2016 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. C PROGRAM TO FIND WHETHER A NUMBER IS AMSTRONG NUMBER OR NOT
Sample C Program to accept a number and check whether given number is amstrong or not.
A positive integer is called an Armstrong number if the sum of cubes of individual digit 
is equal to that number itself. 
For example:        
 
 153 = 1*1*1 + 5*5*5 + 3*3*3 or 1^3 + 5^3 + 3^3 = 1+125+27 = 153 // 153 is an Armstrong number.
 15 is not equal to 1*1*1+5*5*5  // 15 is not an Armstrong number.
C PROGRAM TO FIND WHETHER A NUMBER IS AMSTRONG NUMBER OR NOT

More from this channel