qq_本D笑笑丶_03619464
2018-12-07 10:53
#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;
}
可以,缩进很规范
C语言入门
926209 学习 · 20797 问题
相似问题