#include<iostream.h>
#include<math.h>
#include<stdio.h>
float armstrong(int number)
{
float sum;
int m,p,s,num;
sum=0
num=number;
s=0;
do
{
s=s+1;
m=num%10;
num=num/10;
}while(num!=0);
num=number;
for(p=1;p<=s;p++)
{
int re=num%10;
num=num/10;
sum=sum+pow(re,s);
}
return sum;
}
main()
{
int i,k,num;
cout<<"Please Input your number:/n";
cin>>num;
i=num;
for(i=10;i<num;i++)
{
k=armstrong(i);
if (k==i) cout<<"The armstrong number below "<<num<<"is "<<i<<endl;
}
return 0;
}