public static void Main()
var isArmstrong = IsArmstrong(n);
Console.WriteLine(isArmstrong);
private static bool IsArmstrong(int n)
int second = (n - first) / 10 % 10;
int third = (n - second * 10 - first) / 100;
return Math.Pow(first, 3) + Math.Pow(second, 3) + Math.Pow(third, 3) == n;