now plz solve it's and write it's program
Attachments:
Answers
Answered by
0
Answer:
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int n,m,temp=0;
cout<<"Enter the number you want to check :";
cin>>n;
do
{
m=n%10;
n=n/10;
temp= temp+m*m*m;
}
while(n!=0)
if(temp==n)
{ cout<<"The given number is an Armstrong number"
}
else
{ cout<<"The given number is not an Armstrong number."
}
getch();
}
Hope this helps you !
Similar questions