My issue
i have failed in hidden test case please verofy
My code
#include <stdio.h>
int main() {
int n,temp,r,sum;
scanf("%d",&n);
n=temp;
while(temp!=0)
{
r=temp%10;
sum +=pow(r,3);
temp=temp/10;
}
if(sum==n)
printf("Armstrong");
else
printf("Not Armstrong");
return 0;
}
Learning course: Roadmap to 3*
Problem Link: https://www.codechef.com/learn/course/klu-roadmap-3star/KLURMP300B/problems/LPYAS151