View Problem

Find the distance between two points

ExpandDiskEdit
erlang
Distance = distance({point, 34, 78}, {point, 67, -45}),
io:format("~.2f~n", [Distance]).
ExpandDiskEdit
erlang
Distance = distance(point:new(34, 78), point:new(67, -45)),
io:format("~.2f~n", [Distance]).

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