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 ConsoleApp2
- {
- class Program
- {
- class Point
- {
- double x, y;
- public double[] GetCoordinates
- {
- get {
- double[] coor = new double[2];
- coor[0] = x;
- coor[1] = y;
- return coor;
- }
- }
- public Point ()
- {
- x = y = 0;
- }
- public Point(double x,double y)
- {
- this.x = x;
- this.y = y;
- }
- }
- public double Length (double [] coor)
- {
- double x, y, length;
- Point point = new Point();
- length = Math.Sqrt((coor[0] - x) * (coor[0] - x) + (coor[1] - y) * (coor[1] - y));
- return length;
- }
- class Triangle
- {
- }
- static void Main(string[] args)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement