From af56d2a251f1b3b655d18b579fb9028db42b73c0 Mon Sep 17 00:00:00 2001 From: flykhan Date: Thu, 30 Mar 2023 15:19:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8D=95=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 第一讲 变量、输入输出、表达式与顺序语句/611.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 第一讲 变量、输入输出、表达式与顺序语句/611.cpp diff --git a/第一讲 变量、输入输出、表达式与顺序语句/611.cpp b/第一讲 变量、输入输出、表达式与顺序语句/611.cpp new file mode 100644 index 0000000..1ed028b --- /dev/null +++ b/第一讲 变量、输入输出、表达式与顺序语句/611.cpp @@ -0,0 +1,11 @@ +#include + +int main() +{ + int a, b, d, e; + double c, f; + scanf("%d%d%lf", &a, &b, &c); + scanf("%d%d%lf", &d, &e, &f); + printf("VALOR A PAGAR: R$ %.2lf\n", b * c + e * f); + return 0; +}