Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace SoftuniSv
- {
- class Circle
- {
- public Point center;
- public double radius;
- public double Area()
- {
- return Math.PI * Math.Pow(radius, 2);
- }
- public double Perimeter()
- {
- return 2 * Math.PI * radius;
- }
- public void Print()
- {
- Console.WriteLine($"Circle: (({center.x}, {center.y}), {radius})");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement