Check armstrong challenge i got 71.43 i could not understand the reason can you help me out

#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??

  1. paste your code at https://ide.codingblocks.com/

  2. click->file->save

  3. after a link will be generated at top in place of url something like: https://ide.codingblocks.com/s/12345

  4. share this link

here is my code https://ide.codingblocks.com/s/377195

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.