Suggest The Amstrong Number that will Suite this Code!!

include<iostream.h>

include<conio.h>

include<math.h>

void main() {clrscr(); int a,b,c,d,e,f; cout<<"enter any number : "; cin>>a; {b=a%10; c=a/10; d=c%10; e=c/10; f=(pow(b,3))+(pow(d,3))+(pow(e,3)) ; } if (a==f) cout<<"amstrong number"; else cout<<"not an amstrong number"; getch(); }

×

Problem Loading...

Note Loading...

Set Loading...