#include "stdio.h"
#include "math.h"
main()
{
int a;
float meet,b;
printf("请输入车型!\n1.大众\n2.奇瑞\n3.捷达\n");
scanf("%d",&a);
system("cls");
printf("请输入公里数!");
scanf("%f",&meet);
if(meet>)
{
switch(a)
{
case :b=(meet-)*2.7+; break;
case :b=(meet-)*2.4+; break;
case :b=(meet-)*2.1+; break;
}
printf("您的费用一共是%.1f元",b);
}
else
{
switch(a)
{
case :b=; break;
case :b=; break;
case :b=; break;
}
printf("您的费用一共是%.1f元",b);
} }