Find the maximum and minimum value in an array and multiply them
In this challenge, enter the value in one line as size of an array, and enter numbers separated by space as elements of array, find the maximum and minimum value of an array and multiply them.
Output:
6
11 22 33 44 55 66
726
6
11 22 33 44 55 66
726
Comments
Post a Comment