//PROGRAM TO FIND ARMSTRONG NUMBER
class Armstrong
{
public static void main(String a[])
{
int n=156,i=n,r,sum=0;
while(i>0)
{
r=i%10;
sum+=r*r*r;
i=i/10;
}
if(n==sum)
System.out.println(“the number is Armstrong”);
else
System.out.println(“the number is not Armstrong”);
}
}