#include<stdio.h>
#include<conio.h>
#define MAX 5
void initialize(int a[], int n);
void display (int a[], int n);
void input (int a[], int n);
int sum (int a[], int n);
int largest (int a[], int n);
int smallest (int a[], int n);
void main (void)
{
int array [MAX];
int total;
initialize(array, MAX);
/*input (array, MAX);
total=sum(array, MAX);*/
display (array, MAX);
printf("total = %d\n", total);
}
void initialize(int a[], int n)
{
}
void display (int a[], int n)
{
int x;
printf("Enter a number: %d\n");
scanf("")
printf("Enter a number: ");
}
void input (int a [], int n)
{
}
int sum (int a[], int n)
{
}
int largest (int a[], int n)
{
}
int smallest (int a[], int n)
{
}
void comparePaste (int a[], int b[], int c[], int n)
{
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
the problem is this: write a program that will ask and store 20 or 10 integers, then compute and display the largest and the smallest value plus the sum among the elements of the array.
guys, do you have any suggestions or ideas about the ff:
function calls or prototypes of
sum
input
largest
smallest
comparePaste
initialize
... or any add - ons about the issues ?
THANKS and GOD BLESS!! :)