I'm making this simple program to calculate correlation coefficient
I've a problem here:
when I enter values of array, I sometimes mis-type a number and I want to
re-enter it again to correct it, without having to start the program all over again.
here's the code, I hope someone can give me a clue
I would suggest a loop. After the user enters x and y, display the values, then ask if they are correct. If not, continue looping until the user says they are correct.