CPP_Basics_Syntax/第一讲 变量、输入输出、表达式与顺序语句/610.cpp

11 lines
170 B
C++
Raw Normal View History

2023-03-30 16:25:46 +08:00
#include <cstdio>
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;
}