mehek
2008-03-12 20:19:38 UTC
Input the no. of elements in the array and the values for the array using the function void input array(int size)
If the number of elements exceeds 20, then the program should end. The values must contain both positive and negative integers.
Find the largest sum of positive integers residing at consecutive position using function void largest sum(int num[],int size)
Find the sum of negative integers using function void largest sum(int no[],int size)
Sort the array in descending order and display using function void sort descending(int num[],int size)