Problem Statement
Write a C program to find the maximum element in a 1D array. Input the size n and then n integers. Output the largest value present in the array.
Example
Input:
5 1 5 3 9 2
Output:
9
DEMO-C-32 โข Programming in C
Write a C program to find the maximum element in a 1D array. Input the size n and then n integers. Output the largest value present in the array.
Input:
5 1 5 3 9 2
Output:
9
n followed by array elements.
The maximum value.
Submit runs every public testcase in this browser. Results and code never leave this device.
5 1 5 3 9 2
9
3 -10 -2 -5
-2
1 42
42
C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.
/workspace/question