Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _06_CircleAreaAndPerimeter
- {
- class CircleAreaAndPerimeter
- {
- static void Main(string[] args)
- {
- double r = double.Parse(Console.ReadLine());
- double area = Math.PI * r * r;
- double perimeter = 2 * Math.PI * r;
- Console.WriteLine("Area = {0}" , area);
- Console.WriteLine("Perimeter = {0}",perimeter);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment