Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Globalization;
- using System.Linq;
- using System.Text;
- using System.Threading;
- using System.Threading.Tasks;
- namespace AreaAndPerimeter
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Radius = ");
- double radius = Double.Parse(Console.ReadLine());
- double pi = 3.14159d;
- double perimteter = 2 * pi * radius;
- double area = pi * radius * radius;
- Console.WriteLine("Perimeter: {0:F4}", perimteter);
- Console.WriteLine("Area: {0:F4}", area);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment