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; +}