qq_慕圣4301926
2021-06-17 09:30
#include <stdio.h>
int setup=13;
int morning=9;
int night=18;
int sum
int cost(int kilo)
{
if(nigt>=23 or morninh<=5)
{
sum=setup+(kilo-3)*1.2*2.3+1;
else
sum=setup+(kilo-3)*2.3+1;
}
return sum;
}
int main()
{
cost(12)
printf("小明的车费是%d\n",sum);
return 0;
}
#include <stdio.h>
int setup=13;
int morning=9;
int night=18;
int sum
int cost(int kilo)
{
if(nigt>=23 || morninh<=5)
{
sum=setup+(kilo-3)*1.2*2.3+1;
}
{
else
sum=setup+(kilo-3)*2.3+1;
}
return sum;
}
int main()
{
cost(12)
printf("小明的车费是%d\n",sum);
return 0;
}
C语言入门
926209 学习 · 20797 问题
相似问题