Advertisement
Valyo

Untitled

Oct 14th, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 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());
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement