First, you never actually did input to the array pointed to by 'a'. You actually don't need the variable 'value', since in that first for loop, you could take the input directly into 'a[i]'. The rest of the code looks good, but I assume you know that when you output the minimum and maximum, it will actually (unless the first number is the largest or smallest) output every candidate for the minimum and maximum that it comes across. If you want it just to output one number for each, move the output statement out of the for loop.
That worked. Thanks. The last bit of the program that I can't figure out is the following:
I need to display how many times the max and min were entered.
Example: 1 was entered four times
minimum count = 4
I'm not necessarily asking for the code, but a nudge in the right direction would be appreciated. I know how to add sums of integers and even all elements in an array, but when I tried code that worked for those, it doesn't work for this.