Examples of Armstrong Numbers: 0, 1, 2, 3, 153, 370, 407 etc. Program: #include<stdio.h> int main(){ int num,a,p,total=0; printf("Enter a number:"); scanf("%d",&num); a=num; while(a!=0){ p=a%10; total=total+(p*p*p); a=a/10; } if(total == num){ printf("%d is a Armstrong number.\n",num); }else{ printf("%d is not a Armstorng number.\n",num); }...
Examples of Armstrong Numbers: 0, 1, 2, 3, 153, 370, 407 etc. Program: #include<stdio.h> int main(){ int num,a,p,total=0; printf("Enter a number:"); scanf("%d",&num); a=num; while(a!=0){ p=a%10; total=total+(p*p*p); a=a/10; } if(total == num){ printf("%d is a Armstrong number.\n",num); }else{ printf("%d is not a Armstorng number.\n",num); }...