I am into this code but I need an explanation as to why
int n = 6;
int count = 0;
double end = Math.Sqrt(n);
for (int i = 1; i < end; i++)
{
if (n % i == 0)
count += 2;
}
Console.WriteLine(end * end + " - " + n);
Console.WriteLine(end * end == n);
if (end * end == 6)
Console.WriteLine("why");
returns false
in the second Console.Writeline
but if n=9
returns true