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

12 lines
209 B
C++
Raw Normal View History

2023-03-30 15:19:45 +08:00
#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;
}