Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class CirclePerimAndArea
- {
- static void Main()
- {
- Console.Write("Enter circle radius: ");
- string strRad = Console.ReadLine();
- double radius = double.Parse(strRad);
- double perim = (double)2 * Math.PI * radius;
- double area = (double)Math.PI * radius * radius;
- Console.WriteLine("Circle perimeter = {0:F5}; circle area = {1:F5}", perim, area);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment