Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double num1 = 4 / (8 * i + 1);
- double num2 = 2 / (8 * i + 4);
- double num3 = 1 / (8 * i + 5);
- double num4 = 1 / (8 * i + 6);
- double numdiff = num1 - num2 - num3 - num4;
- pi2 += numdiff * (1 / Math.Pow(16,i));
- }
- Console.WriteLine("Po kLim iteracjach, liczba pi wynosi =
- {0}\n", pi2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement