Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Demo
- {
- class Program
- {
- static void Main(string[] args)
- {
- double radius = double.Parse(Console.ReadLine());
- double perimeter = Math.PI * radius*2;
- double area = Math.PI * Math.Pow(radius,2);
- Console.WriteLine($"{area:f2}");
- Console.WriteLine($"{perimeter:f2} ");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement