C language, input a number of integers from the keyboard, use -1 as the end of the input mark, find their sum and average

C language, input a number of integers from the keyboard, use -1 as the end of the input mark, find their sum and average

0

Enter n integers, find the sum of positive and negative numbers, and count the number of corresponding positive and negative numbers. Enter 0 to indicate the end of input.

0