Im trying a bit of C for a friend to try and help them with a problem.
Ive set up an array which gets the user to input values and store them in the array. What I need to do is to add functionality so that if values entered are not in increasing amounts, it outputs an error message.
/* Input values into the array */
printf("\nType in %d values for the x coordinates\n", sets);
for(i=0; i<=sets-1; i++) scanf("%d", &x[i]);
This receives and stores the values fine. Im guessing i need another for statement somewhere to check that the value entered is greater than the previous one. Please help me!