提交时间:2019-10-07 11:39:09
运行 ID: 1344
#include<iostream> int main(){ int a; float c,b; scanf("%d,%f",&a,&b); switch(a){ case 1:c=2.25/100*b*1+b;break; case 2:c=2.43/100*b*2+b;break; case 3:c=2.70/100*b*3+b;break; case 4:c=2.88/100*b*4+b;break; case 5:c=3.00/100*b*5+b;break; } printf("合计为%f",c); return 0; }