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