Int main (void)
{
Int num_odd=0;
Int num_even=0;
Long sum_odd=0;
Long sum_even=0;
Float f_odd;
Float f_even;
Int number;
Printf (" both Please enter some Numbers. (0 to qiut) \ n ");
While (the scanf (" % d ", & amp; Number) & amp; & (the number!=0))
{
If (number % 2==0)
{
Num_odd + +;
Sum_odd +=number;
}
If (number % 2==1)
{
Num_even + +;
Sum_even +=number;
}
printf (" % d \ n ", number).
}
If (num_odd)
F_odd=(float) sum_odd/num_odd;
If (num_even)
F_even=(float) sum_even/num_even;
Printf (" enter odd number is % d, % f_odd is. 2 f, the even number is % d, % f_even is. 2 f. \ n ", num_odd, f_odd, num_even, f_even);
return 0;
}
This is me to write a program to calculate the odd and even number, remove the red printf, add the enter key input figures, odd number is doubling, and after enter the enter key program continues to run, until the input letters or 0 performed, when combined with red printf function, everything is normal, this is how to return a responsibility?