From 657ee0dbbf8785b6a9e32e7e913b243367df6c0a Mon Sep 17 00:00:00 2001 From: flykhan Date: Thu, 30 Mar 2023 16:31:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E5=A4=A7=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 第一讲 变量、输入输出、表达式与顺序语句/614.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 第一讲 变量、输入输出、表达式与顺序语句/614.cpp diff --git a/第一讲 变量、输入输出、表达式与顺序语句/614.cpp b/第一讲 变量、输入输出、表达式与顺序语句/614.cpp new file mode 100644 index 0000000..88c6360 --- /dev/null +++ b/第一讲 变量、输入输出、表达式与顺序语句/614.cpp @@ -0,0 +1,13 @@ +#include +#include + +int main() +{ + int a, b, c; + int max; + scanf("%d%d%d", &a, &b, &c); + max = (a + b + abs(a - b)) / 2; + max = (max + c + abs(max - c)) / 2; + printf("%d eh o maior", max); + return 0; +}