using System; namespace Punktid3{ class Punkt{ private int x; private int y; public Punkt(int ux, int uy){ x=ux; y=uy; } public int getX(){ return x; } public int getY(){ return y; } public double kaugusNullist(){ return Math.Sqrt(x*x+y*y); } } class Punktiproov{ public static void Main(string[] arg){ Punkt p1=new Punkt(3, 4); Console.WriteLine(p1.kaugusNullist()); } } } /* C:\Projects\oma\naited>Punktid3 5 */