简单计算
This commit is contained in:
parent
d54496f0d7
commit
af56d2a251
11
第一讲 变量、输入输出、表达式与顺序语句/611.cpp
Normal file
11
第一讲 变量、输入输出、表达式与顺序语句/611.cpp
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#include <cstdio>
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user