Monday, December 26, 2011
7:50 PM

C Program to find whether a Given Number is Armstrong Number or not



Program to Check Whether a Number is Armstrong Number or not

#include
//declaration of function int arm(int);
void main() { int a,b; printf("enter the number: "); scanf("%d",&a); b = arm(a); if(b==a) printf("the entered number is armstrong"); else printf("the given number is not armstrong"); }//

0 comments:

Post a Comment