From d21efefad91956cdb25035e610ce34ceeb360df2 Mon Sep 17 00:00:00 2001 From: flykhan Date: Thu, 23 Mar 2023 23:11:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E5=9D=87=E6=95=B01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 第一讲 变量、输入输出、表达式与顺序语句/606.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 第一讲 变量、输入输出、表达式与顺序语句/606.cpp diff --git a/第一讲 变量、输入输出、表达式与顺序语句/606.cpp b/第一讲 变量、输入输出、表达式与顺序语句/606.cpp new file mode 100644 index 0000000..87ab564 --- /dev/null +++ b/第一讲 变量、输入输出、表达式与顺序语句/606.cpp @@ -0,0 +1,11 @@ +#include + +using namespace std; + +int main() +{ + float a, b, w = 3.5 + 7.5; + scanf("%f%f", &a, &b); + printf("MEDIA = %.5f", a * 3.5 / w + b * 7.5 / w); + return 0; +} \ No newline at end of file