View Problem

Find the distance between two points

DiskEdit
csharp
System.Drawing.Point p = new System.Drawing.Point(13, 14),
p1 = new System.Drawing.Point(10, 10);
double distance = Math.Sqrt(Math.Pow(p1.X - p.X, 2) + Math.Pow(p1.Y - p.Y, 2)));

Submit a new solution for csharp
There are 25 other solutions in additional languages (clojure, cpp, erlang, fantom ...)