#include
using namespace std;
int main()
{
long long int n,r,s=0;
cin>>n;
while(n!=0)
{
r=n%10;
s=s+rrr;
n=n/10;
}
if(s=r)
cout<<“true”;
else
cout<<“false”;
return 0;
}
#include
using namespace std;
int main()
{
long long int n,r,s=0;
cin>>n;
while(n!=0)
{
r=n%10;
s=s+rrr;
n=n/10;
}
if(s=r)
cout<<“true”;
else
cout<<“false”;
return 0;
}
whar is this??
Please share the link of Code
How to Share Link of Code??
paste your code at https://ide.codingblocks.com/
click->file->save
after a link will be generated at top in place of url something like: https://ide.codingblocks.com/s/12345
share this link
abcd… = pow(a,n) + pow(b,n) + pow(c,n) + pow(d,n) +
this is the defination of armstrong number
you have to find pow(r,length)
but you are taking cube
Modified Code
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.