CODE
#include <iostream>
using namespace std;
int main(void) {
int n = 2;
double ans = 0.0;
while (n--) {
int no, amount;
double price;
scanf("%d%d%lf", &no, &amount, &price);
ans += amount * price;
}
printf("VALOR A PAGAR: R$ %.2lf", ans);
return 0;
}