#include<iostream>
#include<cstdio>
using namespace std;
int main(){
int m,n;
double sum;
cin>>m>>n;
cout<<"Total: R$ ";
switch(m){
case 1:
sum=4.0*n;
break;
case 2:
sum=4.5*n;
break;
case 3:
sum=5.0*n;
break;
case 4:
sum=2.0*n;
break;
default:
sum=1.5*n;
break;
}
printf("%.2lf",sum);
return 0;
}
不熟悉switch语句,所以用switch写