Write Function C Language Named Sums Two Input Parameters Array Called Input Doubles Integ Q37023817

Write a function in C language, named sums(), that has two inputparameters; an array, called Input of doubles; and an integer whichis the number of values stored in the array and the 4 outputparameters as stated below. Compute the sum of the positive valuesin the array and the sum of the negative values. Also count thenumber of values in each category. Return these four answersthrough output parameters. Write a main program that reads no morethan 20 real numbers and stores them in an array. Stop readingnumbers when a 0 is entered. Call the sums() function and print theanswers it returns.

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.