using System; /* * CIRCLE AREA CALCULATION PROGRAM */ namespace circlearea { class CircleArea { static void Main(string[] args) { int radius; double area; string myname; // first read the name of the user Console.Write("Please enter your name: "); myname = Console.ReadLine(); // greet the user and then read the radius Console.WriteLine("Hello {0}! Welcome to my area calculation program", myname); Console.Write("Please enter the radius of your circle: "); radius = Convert.ToInt32(Console.ReadLine()); // calculate the area of circle with given radius area = 3.14 * radius * radius; Console.Write("The area of circle is "); Console.Write(area); } } }