C++ 代码
blablabla
#include<iostream>
using namespace std;
int main(){
int no,num;double per;
int no2,num2; double per2;
double total;
cin>>no>>num>>per>>no2>>num2>>per2;
total = per*num+per2*num2;
cout<<"VALOR A PAGAR: R$ ";
printf("%.2lf",total);
return 0;
}
%%%