Appearance
題目說明:請撰寫一程式,讓使用者輸入四個數字x1、y1、x2、y2,分別代表兩個點的座標(x1, y1)、(x2, y2)。計算並輸出這兩點的座標與其歐式距離。
提示1:歐式距離 = (x1−x2)2+(y1−y2)2
提示2:兩座標的歐式距離,輸出到小數點後第4位 。
2 1 5.5 8
( 2 , 1 ) ( 5.5 , 8 ) Distance = 7.8262
a0da360
1019ec8