All right, this is the whole program I'm trying to run, just in case, but I'll explain at the end...

Code:

#include <stdio.h>
#include <math.h>
double mel( double x, double y)
{
double answer, a;
a=2;
answer=a*y;
answer+=3*x;
return answer;
}
main ()
{
int i, k;
double x, y;
double ben;
double array_todd[10], jazz[10];
FILE *fout;
fout=fopen("melben.out", "w");
y=2;
i=-1;
for (x=1; x<=10; x++){
i++;
ben=mel(x,y);
array_todd[i]=ben;
}
for (i=0; i<10; i++) {
fprintf(fout, "%e\n", array_todd[i]);
}
fclose(fout);
fout=fopen("melben.out", "r");
for (k=0; k<10; k++) {
fscanf(fout, "%e\n", &jazz[k]);
}
for (k=0; k<10; k++) {
printf("%e\n", jazz[k]);
}
fclose(fout);
getchar();
}

What I'm trying to do is just fprintf to a file, then open it, read it, and print it out again. I'm pretty sure this at least works up to creating the file and opening it again, but something is wrong because it prints out a bunch of ridiculous numbers instead of the one's it's supposed to. I think it might be something to do with my fscanf notation? Can anyone help?

Thanks.