Advertisement
po-razli4en

Circle Area 12 digits precision

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