CHECK THE ARMSTRONG NUMBER IN C
What Is Armstrong number?
So, an Armstrong number is a number which
is equal to the sum of
Its digit raised to the power of the number of
digits.
For example :1634 is an Armstrong number
as,
1634 = 1^4 + 6^4 + 3^4 +4^4
Programme:
#include <stdio.h>
int main() {
int num, originalNum, remainder, result =
0;
printf("Enter a three-digit integer: ");
scanf("%d", &num);
What Is Armstrong number?
So, an Armstrong number is a number which
is equal to the sum of
Its digit raised to the power of the number of
digits.
For example :1634 is an Armstrong number
as,
1634 = 1^4 + 6^4 + 3^4 +4^4
Programme:
#include <stdio.h>
int main() {
int num, originalNum, remainder, result =
0;
printf("Enter a three-digit integer: ");
scanf("%d", &num);