if else连写
#include<cstdio>
int main()
{
int x,y;
double price;
scanf("%d%d",&x,&y);
if(x==1) price=4;
else if(x==2) price=4.5;
else if(x==3) price=5;
else if(x==4) price=2;
else price=1.5;
printf("Total: R$ %.2lf",price*y);
return 0;
}