Largest/Smallest Array Values

write a program thats lets the user enter 10 values into an array. the program should then display the largest and smallest values stored in the array.

am i doing this right if not can someone help me out thank you

// 1. Largest/Smallest Array Values

void LSArray()
{
int arrray [] = { 6, 9, 24, 69, 17, 100, 88, 4, 75, 61};

}

int main()
{
LSArray();
return 0;
}]
Shell:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <iostream>

int lowest(int[], int);
int highest(int[], int);

const int MAX = 10;

int main(){

	int ary[MAX], num;

	for (int i = 0; i < MAX; i++){
		//Code here
	}
	//Finish up		
	return 0;
}

int lowest(int ary[], int size){
	//Code here
}

int highest(int ary[], int size){
	//Code here
}
Last edited on
Topic archived. No new replies allowed.