SHARE
TWEET

Untitled

Valyo Oct 13th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace Demo
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double radius = double.Parse(Console.ReadLine()); // въвеждаме SoftUni
  10.             double perimeter = Math.PI * radius*2;
  11.             double area = Math.PI * Math.Pow(radius,2);
  12.          
  13.             Console.WriteLine($"{area:f2}");
  14.             Console.WriteLine($"{perimeter:f2} ");
  15.         }
  16.     }
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top