Advertisement
Valyo

Untitled

Oct 13th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  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.  
  18.  
  19.  
  20.  
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement