<?php fscanf(STDIN, "%f%f", $x1, $y1); fscanf(STDIN, "%f%f", $x2, $y2); $distance = sqrt(($x2-$x1)**2 + ($y2-$y1)**2); printf("%.4f\n", $distance); ?>
To embed this project on your website, copy the following code and paste it into your website's HTML: