From 51edac9f6d8d633e74a8845db5b20777e6cafc95 Mon Sep 17 00:00:00 2001 From: flykhan Date: Fri, 24 Mar 2023 11:18:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=A4=E7=82=B9=E9=97=B4=E7=9A=84=E8=B7=9D?= =?UTF-8?q?=E7=A6=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 第一讲 变量、输入输出、表达式与顺序语句/616.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 第一讲 变量、输入输出、表达式与顺序语句/616.cpp 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