求解运行问题
程序附上:#include<stdio.h>
#include<math.h>
void main()
{
char a;
int n;
float deposit;
double capital,rate,b;
printf("Input rate, year, capital:");
scanf("%lf,%d,%lf",&rate,&n,&capital);
printf("Compound interest (Y/N)?");
scanf(" %c",&a);
b=pow((1+rate),n);
switch(a)
{case 'y||Y':
printf("deposit = %.4f\n",capital*b);
break;
case 'N||n':
printf("deposit = %.4f\n",capital*(1+rate*n));
break;
}
}