cs-basic/Program.cs

3 lines
105 B
C#

double r = 2.5;
Console.WriteLine($"area of square with radius {r}: {double.Pi * Math.Pow(r, 2)}");