C Program to Check Armstrong Number
Satish B
http://technotip.com/6580/c-program-to-check-armstrong-number/
Lets write a C program to check whether user entered number is Armstrong or not.
Armstrong number: is a number that is equal to the sum of cubes of its individual digits.
Example: If user input the number 371. It’s individual digits are 3, 7 and 1. Lets cube each digit: 3 x 3 x 3 + 7 x 7 x 7 + 1 x 1 x 1 = 27 + 343 + 1 = 371.
The user entered number 371 is equal to the sum of cube of its individual digits. So 371 is a Armstrong number.
C Programming Interview / Viva Q&A List http://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/ ... https://www.youtube.com/watch?v=wfhGh44CVhw
8026935 Bytes