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);
}
}
To embed this program on your website, copy the following code and paste it into your website's HTML: