#include
conio.h
void main() {
int num, orig, rem,res = 0;
clrscr() ;
printf("Enter a three-digit integer: ");
scanf("%d", &num);
orig= num;
while (origi != 0)
{
rem=orig%10;
res += rem* rem * rem;
orig /= 10;
}
if (res== num)
printf("%d is an Armstrong number.", num);
else
printf("%d is not an Armstrong number.", num);
getch() :
}