diff --git a/第一讲 变量、输入输出、表达式与顺序语句/616.cpp b/第一讲 变量、输入输出、表达式与顺序语句/616.cpp new file mode 100644 index 0000000..6369b7e --- /dev/null +++ b/第一讲 变量、输入输出、表达式与顺序语句/616.cpp @@ -0,0 +1,11 @@ +#include +#include + +int main() +{ + double x1, y1, x2, y2; + scanf("%lf%lf", &x1, &y1); + scanf("%lf%lf", &x2, &y2); + printf("%.4lf\n",sqrt(pow((x1-x2),2)+pow((y1-y2),2))); + return 0; +} \ No newline at end of file