I am trying to find the maximum number using a loop and count the number to times the max was entered. I am having trouble with finding and checking for the maximum and counting the number of times it has been entered. Can someone please give me some advice.
int count = 0;
printf("\nHow many numbers?: ");
for (i = 0; i < numbers; i++)
if (max > current)
max = current;
printf("Max: %d Number of times: %d\n", max, count);