提交时间:2019-10-06 12:09:27

运行 ID: 1216

#include<iostream> int main(){ double a,q; int s; scanf("%d,%lf",&s,&a); switch(s){ case 1: q=a*2.25/100; printf("合计为%lf\n",q); break; case 2: q=a*2.43/100; printf("合计为%lf\n",q); break; case 3: q=a*2.70/100; printf("合计为%lf\n",q); break; case 4: q=a*2.88/100; printf("合计为%lf\n",q); break; case 5: q=a*3.00/100; printf("合计为%lf\n",q); break; } return 0; }