Complete Video Learning
Table of Contents
#include<stdio.h>
#include<conio.h>
void main()
{
int n,r,num=0,arm;
printf("enter the number=");
scanf("%d",&n);
arm=n;
while(n>0)
{
r=n%10;
num=num+(r*r*r);
n=n/10;
}
if(arm==num)
{
printf("armstrong number ");
}
else
{
printf("not armstrong number");
}
getch();
}
enter the number =153
armstrong number
SHOW YOUR SUPPORT FOR NIELITBHU..!!
Dear reader, thank you for joining us. Readers like you are an inspiration for us to pursue NIELITBHU. We need your support or cooperation to further empower NIELITBHU and reach NIELITBHU more people in every corner of the country. Your every support is invaluable to our future.