Files
  • main.cs
  • main.exe
main.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;

class TriangleOfLetters {
    static double CalcCircleArea(double radius)
    {
        return Math.PI * radius * radius;
    }

    static void Main()
    {
        Console.WriteLine("r = {0}, area = {1}", 5, CalcCircleArea(5));
        Console.WriteLine("r = {0}, area = {1}", 2.8, CalcCircleArea(2.8));
    }
}