Archived
1
0

Initial commit

This commit is contained in:
2025-10-24 17:19:46 +08:00
Unverified
commit acc0c9e220
155 changed files with 77369 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using System;
namespace C_Sharp_3_4
{
public class Program
{
static void Main(string[] args)
{
double n = 1, t = 1, pi = 0, s = 1;
while (Math.Abs(t) >= Math.Pow(10,-6))
{
pi += t;
n += 2;
s = -s;
t = s / n;
}
pi *= 4;
Console.WriteLine("pi={0}" ,pi);
}
}
}