#include <stdio.h>
int main()
{
float money,kilo,sum;
int time;
if(kilo>=3)
{
if(time>=23||time<5)
{
sum=13+(sum-3)*2.3*1.2+1;
printf("车费%.2f元\n,sum");
}
else
{
sum=13+(sum-3)*2.3+1;
printf("车费%.2f\n元,sum");
}
}
else
{
sum=13+1;
printf("车费%.2f元\n",sum);
}
return 0;
}
#include <stdio.h>
int main()
{
float money,kilo,sum;
int time = 9;
kilo = 12;
if(kilo>=3)
{
if(time>=23||time<5)
{
sum=(13+(kilo-3)*2.3*1.2+1)*2;
printf("车费%.2f元\n",sum);
}
else
{
sum=(13+(kilo-3)*2.3+1)*2;
printf("车费%.2f元\n",sum);
}
}
else
{
sum=13+1;
printf("车费%.2f元\n",sum);
}
return 0;
}