Breaking

All C program



Solution is here 👇👇

#include<stdio.h>
#include<conio.h>

void main()
{
  clrscr();

  int rem=0,a,b,rev=0;
printf("enter a number ");
scanf("%d",&a);
b=a;
while(b!=0)
{
  rem=b%10;
  rev=rev+rem*rem*rem;
  b=b/10;

}
if(a==rev)
{
   printf("%d is a amstrong number",a);
}
else
{
  printf("%d is not a amstrong number",a);
}

getch();
}