I'm quite new to programming so this shouldn't be a problem to most of you. I'm supposed to write a program which sums 1/n^2 (n being consecutive natural numbers) while elements are bigger than constant eps=0,001. I wrote a piece of code and tried to edit it but I'm still stuck in an infinite loop in which I just get consecutive numbers, but it's quite obvious the sum should be between 1 and 2. I'd be more than grateful if anyone could show me what it is that I'm doing wrong. 

```
namespace program
{
    class Program
    {
        static void Main(string[] args)
        {
            const double eps=0.001;
            int n=1;
            double x;
            x = 1 / (n * n);
            double sum=x;
            while (x > eps)
            {
                n++;
                sum = sum + x;
                Console.WriteLine(sum);
            }
            Console.Write("\nSum: {0}.", sum);
            Console.ReadLine();
        }
    }
}

```