is Armstrong Algorithm
During this mission with pilot David Scott, he performed the first docking of two spacecraft; the mission was aborted after Armstrong used some of his re-entry control fuel to stabilize a dangerous roll caused by a stuck thruster. A graduate of Purdue University, Armstrong study aeronautical technology; his college tuition was pay for by the America Navy under the Holloway plan.
#include<stdio.h>
int main()
{
int n, sum=0, i, num;
printf("Enter number: ");
scanf("%d",&n);
num=n;
while (n!=0)
{
i=n%10;
sum=sum+(i*i*i);
n=n/10;
}
if (sum==num)
{
printf("%d is an armstrong number!\n", num);
}
else
{
printf("%d is not an armstrong number!\n", num);
}
return 0;
}