C Program to find the given number is armstrong or not

#include "stdio.h"
void armstrong (int);
void main ()
{
  int num;
  clrscr ();
  printf ("Enter a number\n");
  scanf ("%d", &num);
  armstrong (num);
  getch ();
}
void armstrong (int n)
{
  int a, c, s=0;
  a = n;
  while (a > 0)
  {
    c = a % 10;
    s = s + c * c * c;
    a = a / 10;
  }
  if (s == n)
  printf ("This number is an Armstrong\n");
  else
  printf ("This number is not an Armstrong\n",n);
}