为什么运行不了QAQ
#include <stdio.h>
double n;
double sum;
double num;
double f(double n,double num)
{
if(n<=3.0,5<=num<23)
{
sum=13;
}
else if(n<=3.0,0<=num<5||23<=num<24)
{
sum=13+2*3;
}
else if(n>3.0,0<=num<5||23<=num<24)
{
sum=13+2*n+(n-3)*2.3;
}
else(n>3.0,5<=num<23);
{
sum=13+(n-3)*2.3;
}
return sum;
}
int main()
{
double a;
double b;
double x;
f(12,9)=a;
f(12,6)=b;
x=a+b+1,
printf ("%f",x);
return 0;
}