two left
This commit is contained in:
18
labs/lab7_done/MyClassLine/Program.cs
Normal file
18
labs/lab7_done/MyClassLine/Program.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
|
||||
public class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
Point p1 = new Point();
|
||||
p1.Show();
|
||||
Point p2 = new Point(12, 13);
|
||||
p2.Show();
|
||||
|
||||
Line line = new Line(p1, p2);
|
||||
line.Show();
|
||||
|
||||
double dtr = line.DlinL();
|
||||
Console.WriteLine("Длина отрезка " + dtr);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user