Skip to content

Instantly share code, notes, and snippets.

@MladenMladenov
Created July 25, 2015 07:09
Show Gist options
  • Save MladenMladenov/a1994052e81e81079cf5 to your computer and use it in GitHub Desktop.
Save MladenMladenov/a1994052e81e81079cf5 to your computer and use it in GitHub Desktop.
using System;
class CircleParameterAndArea
{
static void Main()
{
Console.WriteLine("Please enter radius of your circle:");
double r = double.Parse(Console.ReadLine());
double perimeter = 2 * Math.PI * r;
double area = Math.PI * Math.Pow(r, 2);
Console.WriteLine("The perimeter of your circle is {0:0.00} and his area is {1:0.00}", perimeter, area);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment