求大神指点,我这样写规范嘛
#include <stdio.h>
float getfy (float dtime,float juli){
float gl = 2.3;
int qibujia = 13;
float chefei;
if(23>dtime && dtime>5)
if(juli>3){
chefei = qibujia+((juli-3)*gl)+1;
return chefei;
}else{
chefei = 13+1;
return chefei;
}
else
chefei = qibujia + ((qibujia + (juli-3)*gl)*0.2)+1;
return chefei;
}
float num;
int main()
{
num = getfy(9,12);
num = num * 2;
printf("%f",num);
return 0;
}