First of all, thank you for the assist!
I\'m new to the C language (and programming in general) and I\'m trying to write a program wherein the user inputs data point
data
double
Instead use EOF for checking end of input.
EOF
while(scanf("%lf",&data[i]) != EOF) { ... }
Another way:
while(scanf("%lf",&data[i]) == 1) { ... }
count = 0;