using System; using System.Collections.Generic; using System.Text; namespace Lapid1 { class Punkt { private int x; private int y; public Punkt(int x, int y) { this.x = x; this.y = y; } public int GetX() { return x; } public int GetY() { return y; } public double KaugusNullist() { return Math.Sqrt(x * x + y * y); } } }