一道c语言的改错题,谢谢!

2024-11-30 11:56:29
推荐回答(3个)
回答1:

if (arr[i] % 2 == 1)
s=average(a,12);OK

回答2:

/***************found******************/
if(arr[i]%2==1)
{s = s+ arr[i]; k++;}
return (s/(double)k);
}

回答3:

if (arr[i] % 2 == 1)s=average(a,12);