#include<stdio.h>
void main()
{
int x,c;
double i,d,y;
x=5;
printf("input i=?");
do{scanf("%.2lf",&i);
c=i/10;
switch(c)
{
case 0:d
case 1:d=0.1; break;
case 2:d=0.075; break;
case 3:d
case 4:d=00.05; break;
case 5:d
case 6:d=0.03; break;
case 7:d
case 8:d
case 9:d
case 10:d=0.015; break;
default :d=0.01; }
y=(i-5)*d*c;
printf("%.2lf",y);}
}
哪里错了求解