Maybe I'm still tired, but I can't seem to figure out why this keeps crashing after the second input. No point in sorting it if it keeps breaking before the values are entered.
#include <stdio.h>
#define MAX 5
int main(){
int input[MAX], output[MAX], i, j, high;
printf("Please enter 5 exam scores.\n");
for (i=0; i<MAX; i++){
scanf("%d\n", input[i]);
}
for(i=0; i<MAX; i++)
printf("%d\n", input[i]);
return 0;
}