static void IsArmstrong(int num)
        {
            int sum  = 0;
            int temp = num;
            int r;
            int lenth = ArmstrongNumber.len(num);

            while (temp > 0)
            {
                r    = temp % 10;
                sum  = sum + Pow(r, lenth);
                temp = temp / 10;
            }
            if (num == sum)
            {
                Console.WriteLine("Armstrong");
            }
            else
            {
                Console.WriteLine("NotArmstrong");
            }
        }
 public static void Main(String[] arg)
 {
     ArmstrongNumber.IsArmstrong(371);
     Console.ReadLine();
 }