工资和奖金
This commit is contained in:
parent
cb6e3749ee
commit
1b88461434
10
第一讲 变量、输入输出、表达式与顺序语句/610.cpp
Normal file
10
第一讲 变量、输入输出、表达式与顺序语句/610.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
#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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user