Problem Statement
Calculate the distance between two points (x1, y1) and (x2, y2).
Formula: sqrt((x2-x1)^2 + (y2-y1)^2).
DEMO-C-32 โข Programming in C
Calculate the distance between two points (x1, y1) and (x2, y2).
Formula: sqrt((x2-x1)^2 + (y2-y1)^2).
x1 y1 x2 y2.Distance formatted to 2 decimal places.
Submit runs every public testcase in this browser. Results and code never leave this device.
0 0 3 4
5.00
0 0 1 1
1.41
2 3 2 3
0.00
0 5 12 0
13.00
C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.
/workspace/question