/*write a c program to read N integes into an array A and to a)find the sum of negative numbers. b)find the sum of positive numbers. c)find the average of all input numbers. output the various results computed with proper hadings.*/ #include #include int main() { int i,n,a[15],nsum,psum; float avg; printf("\n Enter n size of the array:"); scanf("%d",&n); printf("\n Enter the array:"); for(i=0;i0) psum=psum+a[i]; else nsum=nsum+a[i]; avg=(float)(psum+nsum)/n; printf("\n Sum of negative numbers is %d", nsum); printf("\n Sum of positive numbers is %d", psum); printf("\n Average of all input numbers is %f",avg); return 0; }