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