#include<stdio.h>
int main(){
    int n=371,r,sum;
    int temp=n;
    while(n!=0){
        int c=n%10;
        r=c*c*c;
        sum=sum+r;
        n=n/10;
    }
    if(temp=sum){
        printf("It is armstrong");
    }
    else{
        printf("It is not  armstrong");
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: