From cb6e3749ee225dabcbb2ae16bdd144eead6262bf Mon Sep 17 00:00:00 2001 From: flykhan Date: Thu, 30 Mar 2023 16:12:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E5=9D=87=E6=95=B02?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 第一讲 变量、输入输出、表达式与顺序语句/607.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 第一讲 变量、输入输出、表达式与顺序语句/607.cpp diff --git a/第一讲 变量、输入输出、表达式与顺序语句/607.cpp b/第一讲 变量、输入输出、表达式与顺序语句/607.cpp new file mode 100644 index 0000000..15bfc00 --- /dev/null +++ b/第一讲 变量、输入输出、表达式与顺序语句/607.cpp @@ -0,0 +1,9 @@ +#include + +int main() +{ + float a, b, c; + scanf("%f%f%f", &a, &b, &c); + printf("MEDIA = %.1f\n", (a * 2 + b * 3 + c * 5) / (2 + 3 + 5)); + return 0; +}