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

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.