#include <stdio.h>
int main()
{
int n ;
int temp = n;
int p = 0;
printf("Enter a number\n");
scanf("%d",&n);
printf("The input number is %d",n);
scanf("%d",&n);
while (n > 0) {
int rem = n % 10;
p = (p) + (rem * rem * rem);
n = n / 10;
}
if (temp == p) {
printf("\nThe input number is an Armstrong Number.");
}
else {
printf("\nThe input number is not an Armstrong Number.");
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: