CJCoding With Joseph

Function: Maximum of an Array

Complete the function maxOfArray so it returns the largest value in an integer array. The main function reads N, then N integers, and prints the maximum.

Expected Output:

15
Topics:
Functions/Methods
๐Ÿ“ฅ Auto-Input:
5\n4 9 2 15 7\n
This input is automatically fed to your program's stdin
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (p, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.