This commit is contained in:
nik
2025-09-30 14:26:54 +03:00
parent 8bd93df2ae
commit 8164e04835
633 changed files with 8 additions and 8 deletions

View File

@@ -0,0 +1,33 @@
using System;
class Point
{
private double x;
private double y;
public Point(double x, double y)
{
this.x = x;
this.y = y;
}
public Point ()
{}
public void Show()
{
Console.WriteLine("Точка с координатами: ({0}, {1})", x, y);
}
public double Dlina(Point p)
{
double Dl = Math.Sqrt((this.x - p.x) * (this.x - p.x) + (this.y - p.y) * (this.y - p.y));
return Dl;
}
public override string ToString()
{
string ss = x + " ; " + y;
return ss;
}
}