#include int main() { const int MAXELS = 5; int i, max, nums[MAXELS] = {2, 18, 1, 27, 16}; max = nums[0]; for (i = 1; i < MAXELS; i++) if (max < nums[i]) max = nums[i]; cout << "\nThe maximum value of the array elements is " << max << endl; return 0; }