Code 1: 1. Warp to check a number is Armstrong 2. C program to check whether a number is Armstrong or not 3. Simple c program for Armstrong number 4. Armstrong number in c with output #include <stdio.h> int main(){ int num,r,sum=0,temp; printf( "Enter a number: " ); scanf( "%d" ,&num); temp=num; while (num!=0){ r=num%10; num=num/10; sum=sum+(r*r*r); } if (sum==temp) printf( "%d is an Armstrong number" ,temp); else printf( "%d is not an Armstrong number" ,temp); return 0; } Sample output: Enter a numb...
Article Trade is a classic article blog, find any types of article for free.