コード例 #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Enter Radius: ");
            double Radius = Double.Parse(Console.ReadLine());

            Circle c = new Circle(Radius);

            Console.WriteLine("Circuit is " + c.Circuit());
            Console.WriteLine("Area of the circle is " + c.CircleArea());

            Console.ReadKey();
        }
コード例 #2
0
ファイル: Task3.cs プロジェクト: MarianVas/PracticalTasks
        public static void Task()
        {
            double radius;
            double area;
            double circuit;

            Console.WriteLine("Enter the radius of your circle:");
            radius = Checker();

            circuit = Circle.Circuit(radius);
            area    = Circle.Area(radius);

            Console.WriteLine("Your circle circuit is - " + circuit);
            Console.WriteLine("Your circle area is - " + area);

            Console.ReadKey();

            PracticalTaks.Program.Main();
        }