原题题目
代码实现
#include<iostream>
#include<cstring>
#include<cmath>
using namespace std;
int main()
{
int x,y;
double sum,z;
cin >> x>>y;
switch(x)
{
case 1:
z=4.00;
break;
case 2:
z=4.50;
break;
case 3: z=5.00;break;
case 4:z=2.00;break;
case 5:z=1.50;break;
}
sum=z*y;
printf("Total: R$ %.2lf",sum);
return 0;
}