using System;

class Program
{
    static void Main()
    {
        int number = 153;
        int original = number;
        int result =

 0;

        while (number > 0)
        {
            int digit = number % 10;
            result += digit * digit * digit;
            number /= 10;
        }

        bool isArmstrong = (result == original);
        Console.WriteLine("Is Armstrong: " + isArmstrong);
    }
}

Embed on website

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