提交时间:2019-10-07 20:12:12

运行 ID: 1387

#include<iostream> int main(){ int a,b; float c; scanf("%d,%d",&a,&b); switch(a){ case 1:c=b+b*0.0225;break; case 2:c=b+b*0.0243;break; case 3:c=b+b*0.027;break; case 4:c=b+b*0.0288;break; case 5:c=b+b*0.03;break; } printf("合计为%f",c);