From 1b884614343b8e576247aeef195bce9141c397fd Mon Sep 17 00:00:00 2001 From: flykhan Date: Thu, 30 Mar 2023 16:25:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E8=B5=84=E5=92=8C=E5=A5=96=E9=87=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 第一讲 变量、输入输出、表达式与顺序语句/610.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 第一讲 变量、输入输出、表达式与顺序语句/610.cpp diff --git a/第一讲 变量、输入输出、表达式与顺序语句/610.cpp b/第一讲 变量、输入输出、表达式与顺序语句/610.cpp new file mode 100644 index 0000000..4b5f785 --- /dev/null +++ b/第一讲 变量、输入输出、表达式与顺序语句/610.cpp @@ -0,0 +1,10 @@ +#include + +int main() +{ + char name[10]; + double a, b; + scanf("%s%lf%lf", &name, &a, &b); + printf("TOTAL = R$ %.2lf\n", a + b * 0.15); + return 0; +}