提交时间:2019-10-17 20:24:11
运行 ID: 1654
#include<iostream> int main(){ int a,b; float c; scanf("%d,%d",&a,&b); switch(a){ case 1: c=b+b*a*0.0225;break; case 2: c=b+b*a*0.0243;break; case 3: c=b+b*a*0.0270; break; case 4: c=b+b*a*0.0288;break; case 5: c=b+b*a*0.0300;break; } printf("合计为%f",c); return 0; }