## Detect Armstrong number in 3 digits from 100 to 999 using C

/*WAP to detect armstrong number in 3 Digits from 100 to 999*/ #include<stdio.h> void main() { int i,j,k,number,sumcube; clrscr(); i=1; do { j=0; do { k=0; do { number=i*100+j*10+k; sumcube=(i*i*i)+(j*j*j)+(k*k*k); if(number==sumcube) printf(“%d\n”,number); ++k; } while(k<=9); ++j; } while(j<=9); i++; } while(i<=9); getch(); } Output 13 370 371 407 Download Program Download