提交时间:2022-07-14 11:58:06
运行 ID: 47240
#include<iostream> int main(){ int a,b; float c; scanf("%d,%d",&a,&b); if(a==1){ c=b+b*0.0225; } if(a==2){ c=b+b*0.0243; } if(a==3){ c=b+b*0.0270; } if(a==4){ c=b+b*0.0288; } if(a==5){ c=b+b*0.03; } printf("合计为%f",c); }