Question: Please help with this. I need to write a program #include void main() { double product = 1, List[10]; int i, N; printf(Enter the length

Please help with this. I need to write a program

#include

void main() { double product = 1, List[10];

int i, N;

printf("Enter the length of your array (Ranging from 1 to 10): ");

scanf("%d", &N); // Assumes integer value is entered

printf("Enter each element of your array separated by space: ");

for(i = 0; i < N; i++) {

if(scanf("%lf", &List[i]) == EOF)

break; }

for(i = 0; i < N; i++)

product*=List[i];

printf("Product of All Entries is %lf", product); }

Pointers can be used as function arguments when we want to return more than one value from the function. Using the above program as a starting point, write a program that determine the maximum and minimum values from a number array entered by the user using the following function prototype statement: void MaxMin(double List[], double *Max, double *Min)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!