public static void Main()
{
int one = 1;
double s = 0;
double eps = 1e-6;
for (double i = 1; Math.Abs(one / i) > eps; i += 2, one = -one)
s += one / i;
Console.WriteLine("" + s + " " + Math.PI / 4);
Console.ReadKey(true);
}