Dimoto

02. Circle Area (Precision 12)

May 19th, 2016
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.24 KB | None | 0 0
  1. using System;
  2.  
  3. class CenturiesToMinutes
  4. {
  5.     static void Main()
  6.     {
  7.         double radius = double.Parse(Console.ReadLine());
  8.  
  9.         double area = Math.PI * Math.Pow(radius, 2);
  10.  
  11.         Console.WriteLine("{0:F12}", area);
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment