题目描述
零食
样例
#include <stdio.h>
int main()
{
int x,y;
double a,c;
scanf("%d%d",&x,&y);
if(x==1)
a=4.00;
else if(x==2)
a=4.50;
else if(x==3)
a=5.00;
else if(x==4)
a=2.00;
else if(x==5)
a=1.50;
c=a*y;
printf("Total: R$ %.2lf\n",c);
return 0;
}