VelizarAvramov

02. Circle Area (Precision 12)

Nov 14th, 2019
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _02._Circle_Area__Precision_12_
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double radius = double.Parse(Console.ReadLine());
  10.  
  11.             double circleArea = Math.PI * radius * radius;
  12.  
  13.             Console.WriteLine($"{circleArea:f12}");
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment