Advertisement
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 Circle_Area_and_Perimeter
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Enter circle radius. r = ");
- var r = double.Parse(Console.ReadLine());
- Console.WriteLine("Area = " + Math.PI * r * r);
- Console.WriteLine("Perimeter = " + 2 * Math.PI * r);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement