Skip to content

Instantly share code, notes, and snippets.

public static bool ishappy(int num)
{
List<int> seen = new List<int>();
seen.Add(num);
List<int> multiples = new List<int>();
while (true)
{
int digits = numdigits(num);