using System;

namespace Zadatak1
{
  class Tacka
  {
    private double x;
    private double y;

    public Tacka()
    {
	x = 0;
	y = 0;
    }	

    public Tacka(double a, double b)
    {
	x = a;
	y = b;
    }	
	
    public void Prikaz()
    {
      Console.WriteLine("Koordinate tacke su " + x + " , " + y);
    }
       
    public double Distanca(Tacka T)
    {
      return Math.Sqrt( Math.Pow((this.x - T.x),2) + Math.Pow((this.y - T.y),2));
    }
  }
}