Created
July 25, 2015 07:09
-
-
Save MladenMladenov/a1994052e81e81079cf5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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