This program reads n float values from the user, stores them in an array, and finds the maximum value and its index using functions.
Input:
5
12.5
8.2
19.7
6.4
10.1
Output:
Maximum value = 19.70
Index of maximum value = 2
Input:
4
5.5
7.2
3.1
9.8
Output:
Maximum value = 9.80
Index of maximum value = 3