Spocoman

08. Circle Area and Perimeter

Nov 15th, 2021 (edited)
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1. using System;
  2.  
  3.  
  4. namespace CircleArea
  5. {
  6.     class Program
  7.     {
  8.         static void Main()
  9.         {
  10.             double r = double.Parse(Console.ReadLine());
  11.  
  12.             Console.WriteLine($"{Math.PI * r * r:F2}");
  13.             Console.WriteLine($"{2 * Math.PI * r:F2}");
  14.         }
  15.     }
  16. }
Add Comment
Please, Sign In to add comment