输入的结果为什么不对啊?
#include <stdio.h>main()
{int year,a;
float rate,money;
scanf("%d,%d",&rate,a);
switch(year)
{case 1:rate=0.0198;break;
case 2:rate=0.0215;break;
case 3:rate=0.0225;break;
}
money=a+a*rate;
printf("the money is %f\n",money);
}