• We hope you have a fantastic holiday season to close out 2025! Thank you all so much for being part of the Tom's Guide community!

how to code a program which accepts a list of numbers and calculate the maximum of the list of numbers using two function

Solution
You didn't state what language it should be written in... I won't do your homework for you but here's a hint:

Create a variable to store the high number, then put the first number in the list/array in that variable, then check each number against the high number using an if statement:

If (array[currentNumber] > highNumber) {

highNumber = array[currentNumber];

}
You didn't state what language it should be written in... I won't do your homework for you but here's a hint:

Create a variable to store the high number, then put the first number in the list/array in that variable, then check each number against the high number using an if statement:

If (array[currentNumber] > highNumber) {

highNumber = array[currentNumber];

}
 
Solution
If you can't do this, you might want to reconsider computer science.