Advertisement
veronikaaa86

Circle And Area Perimeter C#

Oct 17th, 2017
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Circle_Area_and_Perimeter
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             Console.Write("Enter circle radius. r = ");
  13.             var r = double.Parse(Console.ReadLine());
  14.             Console.WriteLine("Area = " + Math.PI * r * r);
  15.             Console.WriteLine("Perimeter = " + 2 * Math.PI * r);
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement