I have been using this function to calculate the maximum and minimum value of integers of a given array. However this code only prints the last integer that I put in. I think it is a problem with where I have the loop but I am not sure.
bool quit = false
printf("The maximum value of integers is %i\n",max);
I thought that this would work but as I said it only gives me the last integer that I typed in.....I almost missed it as the largest digit that I put in was always the biggest so I thought I was right.
Any ideas as to how to fix this error