慕用1008175
2021-08-31 11:00
#include <stdio.h>
float taxifee(int jl,int sbsj,int sbdq,float xbsj,float xbdq)
{
if (sbsj<5 && sbsj>=23)
{
sbdq = 13+(jl-3)*2.3*1.2+1;
}
else
{
sbdq =13+(jl-3)*2.3+1;
}
if (xbsj<5 && xbsj>=23)
{
xbdq = 13+(jl-3)*2.3*1.2+1;
}
else
{
xbdq =13+(jl-3)*2.3+1;
}
zjq=xbdq+sbdq;
printf("小明每天打车的总费用是%f\n元",zjq);
return 0;
}
int main()
{
int jl=12;
int sbsj=9;
int xbsj=18;
float sbdq;
float xbdq;
float zjq;
taxifee(jl,sbsj,xbsj,sbdq,xbdq,zjq);
return 0;
}
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA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