예제 #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("This program reads coordinates and radius of round from the console and outputs information about it.\n");
            Console.Write("Enter X coordinate of the round: ");
            double x = double.Parse(Console.ReadLine());

            Console.Write("Enter Y coordinate of the round: ");
            double y = double.Parse(Console.ReadLine());

            Console.Write("Enter radius of the round: ");
            double r = double.Parse(Console.ReadLine());

            Round round = new Round(x, y, r);

            round.ShowInfo();

            Console.WriteLine("\n\nEnd of program. Press any key.");
            Console.ReadKey();
        }