简单计算

This commit is contained in:
flykhan 2023-03-30 15:19:45 +08:00
parent d54496f0d7
commit af56d2a251
1 changed files with 11 additions and 0 deletions

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